Skip to content

Commit

Permalink
Use per-distro cmake flags
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Heyer <[email protected]>
  • Loading branch information
royshil and PatTheMav authored Dec 4, 2023
1 parent 7d497e7 commit fa273fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/common/helpers_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ 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)
if(OS_LINUX OR OS_FREEBSD OR OS_OPENBSD)
# add fPIC on Linux to prevent shared object errors
set_property(TARGET plugin-support PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()
Expand Down

0 comments on commit fa273fb

Please sign in to comment.