From 637aa585bd62b557e7d219f6d5f5d004a6efdbd3 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Fri, 9 Nov 2018 10:39:25 +0100 Subject: [PATCH] target prop --- src/lib/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 07aa4ec..f483a93 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -14,6 +14,7 @@ foreach(ccfile ${cc_files}) endforeach(ccfile) add_library(multiarray SHARED ${libmultiarray_a_SOURCES}) +set_target_properties(multiarray PROPERTIES POSITION_INDEPENDENT_CODE TRUE) install(TARGETS multiarray ARCHIVE DESTINATION ${INSTALL_PATH}/lib LIBRARY DESTINATION ${INSTALL_PATH}/lib)