Set postfixes for generated libraries based on buildtype

This commit is contained in:
kokerf 2018-03-31 09:30:35 +08:00 committed by Andreas Schuh
parent 2c49763b73
commit cad38c919c

View file

@ -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