Skip to content

Commit

Permalink
Merge pull request #1347 from fjtrujy/position_independent_code
Browse files Browse the repository at this point in the history
Fix POSITION_INDEPENDENT_CODE
  • Loading branch information
cdunn2001 authored Nov 3, 2021
2 parents fa747b1 + 29f9853 commit b22302e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib_json/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ if(BUILD_SHARED_LIBS)
OUTPUT_NAME jsoncpp
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_SOVERSION}
POSITION_INDEPENDENT_CODE ON
POSITION_INDEPENDENT_CODE ${BUILD_SHARED_LIBS}
)

# Set library's runtime search path on OSX
Expand Down Expand Up @@ -180,7 +180,7 @@ if(BUILD_OBJECT_LIBS)
OUTPUT_NAME jsoncpp
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_SOVERSION}
POSITION_INDEPENDENT_CODE ON
POSITION_INDEPENDENT_CODE ${BUILD_SHARED_LIBS}
)

# Set library's runtime search path on OSX
Expand Down

0 comments on commit b22302e

Please sign in to comment.