From a36062654085041e712c74f5cfbd7c6b464cfa69 Mon Sep 17 00:00:00 2001 From: Marsel Galimullin Date: Sun, 14 Aug 2016 13:27:34 +0300 Subject: [PATCH] Add the suffix "_d" to debug version of the static library --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d782e3c5..0d9d61b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,9 +109,10 @@ set(SOURCES src/hp_gc.cpp src/dllmain.cpp) add_library(${CDS_SHARED_LIBRARY} SHARED ${SOURCES}) -set_target_properties( ${CDS_SHARED_LIBRARY} PROPERTIES VERSION ${PROJECT_VERSION}) +set_target_properties( ${CDS_SHARED_LIBRARY} PROPERTIES VERSION ${PROJECT_VERSION} + DEBUG_POSTFIX "_d") add_library(${CDS_STATIC_LIBRARY} STATIC ${SOURCES}) -set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX "_d") +set_target_properties(${CDS_STATIC_LIBRARY} PROPERTIES DEBUG_POSTFIX "_d") target_link_libraries(${CDS_SHARED_LIBRARY} PRIVATE ${CMAKE_THREAD_LIBS_INIT}) target_link_libraries(${CDS_STATIC_LIBRARY} PRIVATE ${CMAKE_THREAD_LIBS_INIT}) -- 2.34.1