Set target property POSITION_INDEPENDENT_CODE=True
This commit is contained in:
parent
985819fb2c
commit
07266344bc
@ -27,7 +27,8 @@ macro (opm_compile opm)
|
||||
SOVERSION ${${opm}_VERSION_MAJOR}
|
||||
VERSION ${${opm}_VERSION}
|
||||
LINK_FLAGS "${${opm}_LINKER_FLAGS_STR}"
|
||||
)
|
||||
POSITION_INDEPENDENT_CODE TRUE
|
||||
)
|
||||
target_link_libraries (${${opm}_TARGET} ${${opm}_LIBRARIES})
|
||||
|
||||
if (STRIP_DEBUGGING_SYMBOLS)
|
||||
|
Loading…
Reference in New Issue
Block a user