Skip to content

Commit ee34ac1

Browse files
kamelccdunn2001
authored andcommitted
Add position independent code feature to CMakeList.txt
Enable Position Independent Code for shared lib
1 parent d31a530 commit ee34ac1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib_json/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ IF(BUILD_SHARED_LIBS)
7373
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_SOVERSION})
7474
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp
7575
DEBUG_OUTPUT_NAME jsoncpp${DEBUG_LIBNAME_SUFFIX} )
76+
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES POSITION_INDEPENDENT_CODE ON)
7677

7778
# Set library's runtime search path on OSX
7879
IF(APPLE)

0 commit comments

Comments
 (0)