Skip to content

Commit a3afd74

Browse files
committed
Don't use unique variable for postfix
The more general CMake way to handle library suffixing is to set CMAKE_<CONFIG>_POSTFIX, so setting the Debug output suffix name should be more correctly done by the caller or CMake configurer by setting the desired value in CMAKE_DEBUG_POSTFIX.
1 parent 2cb16b3 commit a3afd74

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ endif()
103103
# Adhere to GNU filesystem layout conventions
104104
include(GNUInstallDirs)
105105

106-
set(DEBUG_LIBNAME_SUFFIX "" CACHE STRING "Optional suffix to append to the library name for a debug build")
107-
108106
set(JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping allocator for STL")
109107

110108
configure_file("${PROJECT_SOURCE_DIR}/version.in"

src/lib_json/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ endif()
8484

8585
add_library(jsoncpp_lib ${PUBLIC_HEADERS} ${jsoncpp_sources})
8686
set_target_properties(jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_SOVERSION})
87-
set_target_properties(jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp
88-
DEBUG_OUTPUT_NAME jsoncpp${DEBUG_LIBNAME_SUFFIX})
87+
set_target_properties(jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp)
8988
set_target_properties(jsoncpp_lib PROPERTIES POSITION_INDEPENDENT_CODE ON)
9089

9190
# Set library's runtime search path on OSX

0 commit comments

Comments
 (0)