diff --git a/cmake/common/helpers_common.cmake b/cmake/common/helpers_common.cmake index 702cb81..1d06adb 100644 --- a/cmake/common/helpers_common.cmake +++ b/cmake/common/helpers_common.cmake @@ -134,4 +134,8 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/plugin-support.c.in") PRIVATE plugin-support.c PUBLIC src/plugin-support.h) target_include_directories(plugin-support PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src") + if(UNIX AND NOT APPLE) + # add fPIC + set_property(TARGET plugin-support PROPERTY POSITION_INDEPENDENT_CODE ON) + endif() endif()