From cad38c919c73c4d6622cdcebcd675627e2183022 Mon Sep 17 00:00:00 2001 From: kokerf Date: Sat, 31 Mar 2018 09:30:35 +0800 Subject: [PATCH] Set postfixes for generated libraries based on buildtype --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 922a038..d5052f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -403,6 +403,9 @@ if (NOT GFLAGS_IS_SUBPROJECT) set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "lib") set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "lib") endif () +# Set postfixes for generated libraries based on buildtype. +set(CMAKE_RELEASE_POSTFIX "") +set(CMAKE_DEBUG_POSTFIX "_debug") # ---------------------------------------------------------------------------- # installation directories