We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73298a8 commit 399e965Copy full SHA for 399e965
src/lib_json/CMakeLists.txt
@@ -95,8 +95,10 @@ ENDIF()
95
IF(BUILD_STATIC_LIBS)
96
ADD_LIBRARY(jsoncpp_lib_static STATIC ${PUBLIC_HEADERS} ${jsoncpp_sources})
97
SET_TARGET_PROPERTIES( jsoncpp_lib_static PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_SOVERSION})
98
- SET_TARGET_PROPERTIES( jsoncpp_lib_static PROPERTIES OUTPUT_NAME jsoncpp
99
- DEBUG_OUTPUT_NAME jsoncpp${DEBUG_LIBNAME_SUFFIX} )
+ if (NOT BUILD_SHARED_LIBS)
+ SET_TARGET_PROPERTIES( jsoncpp_lib_static PROPERTIES OUTPUT_NAME jsoncpp
100
+ DEBUG_OUTPUT_NAME jsoncpp${DEBUG_LIBNAME_SUFFIX} )
101
+ endif ()
102
103
INSTALL( TARGETS jsoncpp_lib_static ${INSTALL_EXPORT}
104
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
0 commit comments