build system: set PIC property for odr target explicitly

This commit is contained in:
Michele Caini
2022-08-29 09:48:23 +02:00
parent 8bed15e469
commit 006822c7fc

View File

@@ -84,6 +84,7 @@ function(SETUP_TARGET TARGET_NAME)
endfunction()
add_library(odr OBJECT odr.cpp)
set_target_properties(odr PROPERTIES POSITION_INDEPENDENT_CODE ON)
SETUP_TARGET(odr)
function(SETUP_BASIC_TEST TEST_NAME TEST_SOURCES)