diff options
author | wsnipex <wsnipex@a1.net> | 2018-04-28 07:58:15 +0200 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2018-04-28 07:58:15 +0200 |
commit | 5907a045c22734995e2d209cb71ce4b2d40634bd (patch) | |
tree | 3abc93d8f9b1da660e9c3172a7185d89e3548088 /cmake | |
parent | 3e5f63eccfe285f181b6e0d8e230f5b81be890f9 (diff) |
[addons] always build addons with PIC
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/common/AddonHelpers.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/scripts/common/AddonHelpers.cmake b/cmake/scripts/common/AddonHelpers.cmake index 5470940420..05411c43d9 100644 --- a/cmake/scripts/common/AddonHelpers.cmake +++ b/cmake/scripts/common/AddonHelpers.cmake @@ -157,7 +157,8 @@ macro (build_addon target prefix libs) target_link_libraries(${target} ${${libs}}) set_target_properties(${target} PROPERTIES VERSION ${${prefix}_VERSION} SOVERSION ${APP_VERSION_MAJOR}.${APP_VERSION_MINOR} - PREFIX "") + PREFIX "" + POSITION_INDEPENDENT_CODE 1) if(OS STREQUAL "android") set_target_properties(${target} PROPERTIES PREFIX "lib") endif() |