Add explicit CMAKE_DEBUG_POSTFIX option

Enable generating different library name to be compatible with CMake's `FindGTest`.
This commit is contained in:
ly2048 2017-09-14 13:22:04 +08:00 committed by GitHub
parent 20e62ad24c
commit 9681b4c8e6

View File

@ -27,6 +27,8 @@ option(
"Build gtest with internal symbols hidden in shared libraries."
OFF)
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Generate debug library name with a postfix.")
# Defines pre_project_set_up_hermetic_build() and set_up_hermetic_build().
include(cmake/hermetic_build.cmake OPTIONAL)