Skip to content

Commit c648b03

Browse files
committed
Consolidate setting of jsoncpp target properties
1 parent a3afd74 commit c648b03

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib_json/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ if(BUILD_SHARED_LIBS)
8181
endif()
8282
endif()
8383

84-
8584
add_library(jsoncpp_lib ${PUBLIC_HEADERS} ${jsoncpp_sources})
86-
set_target_properties(jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_SOVERSION})
87-
set_target_properties(jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp)
88-
set_target_properties(jsoncpp_lib PROPERTIES POSITION_INDEPENDENT_CODE ON)
85+
set_target_properties( jsoncpp_lib PROPERTIES
86+
OUTPUT_NAME jsoncpp
87+
VERSION ${JSONCPP_VERSION}
88+
SOVERSION ${JSONCPP_SOVERSION}
89+
POSITION_INDEPENDENT_CODE ON
90+
)
8991

9092
# Set library's runtime search path on OSX
9193
if(APPLE)

0 commit comments

Comments
 (0)