From a5660773cb2fe4cc432f606435a4f40e679bda58 Mon Sep 17 00:00:00 2001 From: Yuchen Deng Date: Wed, 24 May 2017 21:24:29 +0800 Subject: [PATCH] Add '_d' suffix for debug library example for use: if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") target_link_libraries(${PROJECT_NAME} LINK_PRIVATE debug nana_d optimized nana) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") target_link_libraries(${PROJECT_NAME} LINK_PRIVATE nana) endif() --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f0dc030..054137f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,7 @@ endif() if(WIN32) add_definitions(-DWIN32) + set(CMAKE_DEBUG_POSTFIX "_d") #Global MSVC definitions. You may prefer the hand-tuned sln and projects from the nana repository. if(MSVC) option(MSVC_USE_MP "Set to ON to build nana with the /MP option (Visual Studio 2005 and above)." ON)