Update: Allow CMAKE_DEBUG_POSTFIX to be overridden

Forcing _debug postfix will require applications to update their compile flags based on the release mode
This commit is contained in:
narayana-dev 2025-02-15 11:15:56 +05:30 committed by GitHub
parent 58cf1ef6d0
commit 647e81c0bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -415,7 +415,9 @@ if (NOT GFLAGS_IS_SUBPROJECT)
endif ()
# Set postfixes for generated libraries based on buildtype.
set(CMAKE_RELEASE_POSTFIX "")
set(CMAKE_DEBUG_POSTFIX "_debug")
if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
set(CMAKE_DEBUG_POSTFIX "_debug")
endif()
# ----------------------------------------------------------------------------
# installation directories