From: Sergiu Deitsch Date: Fri, 7 Oct 2016 08:54:14 +0000 (+0200) Subject: cmake: enable position independent code (PIC) X-Git-Tag: submit/tizen/20180313.064233~58^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e05f3256681ee4a5e00b64964855716853ec8944;p=platform%2Fupstream%2Fglog.git cmake: enable position independent code (PIC) --- 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)