Merge pull request #129 from sergiud/cmake-PIC

cmake: enable position independent code (PIC)
This commit is contained in:
Fumitoshi Ukai 2016-10-19 15:52:32 +09:00 committed by GitHub
commit dee7c8c36e

View File

@ -380,6 +380,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)