From 634fbc748eb7efa5cbdb3e462730f3f52f877503 Mon Sep 17 00:00:00 2001 From: Xiaoqiang Wang Date: Wed, 23 Aug 2017 16:13:36 +0200 Subject: [PATCH] compile libraries with -fPIC flag --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f47daee4..cd61071e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ if (USE_HDF5) find_package(HDF5 1.10 COMPONENTS CXX) endif (USE_HDF5) - +set(CMAKE_POSITION_INDEPENDENT_CODE ON) add_subdirectory(slsDetectorSoftware) add_subdirectory(slsReceiverSoftware)