Merge pull request #129 from sergiud/cmake-PIC
cmake: enable position independent code (PIC)
This commit is contained in:
commit
dee7c8c36e
@ -380,6 +380,8 @@ add_library (glog
|
|||||||
${GLOG_SRCS}
|
${GLOG_SRCS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties (glog PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
||||||
if (UNWIND_LIBRARY)
|
if (UNWIND_LIBRARY)
|
||||||
target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY})
|
target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY})
|
||||||
endif (UNWIND_LIBRARY)
|
endif (UNWIND_LIBRARY)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user