From a1195eaa0a2480159841d2b33c5bcff47a45ddb2 Mon Sep 17 00:00:00 2001 From: user0804 Date: Fri, 9 May 2014 11:50:59 -0400 Subject: [PATCH] Added debug postfix (only for MSVC) so that debug and release libs can live together. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca2c1df..6d6e020 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -262,6 +262,9 @@ foreach (TYPE IN ITEMS STATIC SHARED) VERSION "${PACKAGE_VERSION}" SOVERSION "${PACKAGE_SOVERSION}" ) + if (MSVC) + set_target_properties (gflags${opts}-${type} PROPERTIES DEBUG_POSTFIX "d") + endif() if (HAVE_SHLWAPI_H) target_link_libraries (gflags${opts}-${type} shlwapi.lib) endif ()