From cb67f11d8e1c67cdd8de8f47e6e42eba89324858 Mon Sep 17 00:00:00 2001 From: Stephan Opfer Date: Thu, 18 Apr 2019 18:04:55 +0200 Subject: added -fPIC --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 290c91c..275c505 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,7 @@ install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) install(DIRECTORY include/ DESTINATION include) +set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON) # tests if (ENABLE_TESTS) -- cgit v1.2.3