Skip to content
Snippets Groups Projects
Commit 6c1549aa authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

Fix #17 (forgot actual code)

parent cdb721b0
No related branches found
No related tags found
No related merge requests found
Pipeline #10697 passed
......@@ -166,4 +166,11 @@ configure_file(${CMAKE_SOURCE_DIR}/common/cpp/src/config.cpp.in
# For issue #17
# https://gitlab.kitware.com/cmake/cmake/issues/16915#note_456382
if ( TARGET Qt5::Core )
get_property( core_options TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_OPTIONS )
string( REPLACE "-fPIC" "" new_core_options "${core_options}" )
set_property( TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_OPTIONS ${new_core_options} )
set_property( TARGET Qt5::Core PROPERTY INTERFACE_POSITION_INDEPENDENT_CODE "ON" )
set( CMAKE_CXX_COMPILE_OPTIONS_PIE "-fPIC" )
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment