From e05f3256681ee4a5e00b64964855716853ec8944 Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Fri, 7 Oct 2016 10:54:14 +0200 Subject: [PATCH] cmake: enable position independent code (PIC) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1429590..c7b343f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,6 +372,8 @@ add_library (glog ${GLOG_SRCS} ) +set_target_properties (glog PROPERTIES POSITION_INDEPENDENT_CODE ON) + if (UNWIND_LIBRARY) target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY}) endif (UNWIND_LIBRARY) -- 2.7.4