cmake: log when CMAKE_DEBUG_POSTFIX/CMAKE_BUILD_TYPE is changed

This commit is contained in:
Azat Khuzhin 2023-05-23 21:46:14 +02:00
parent 2112c3969a
commit 283a371f51

View File

@ -34,6 +34,7 @@ endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release
CACHE STRING "Set build type to Debug or Release (default Release)" FORCE)
message(STATUS "Set CMAKE_BUILD_TYPE to Release (default)")
endif()
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
@ -1729,5 +1730,6 @@ message(STATUS "CMAKE_C_COMPILER: ${CMAKE_C_COMPILER} (id ${CMAKE_C_COMP
message(STATUS "CMAKE_AR: ${CMAKE_AR}")
message(STATUS "CMAKE_RANLIB: ${CMAKE_RANLIB}")
message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
message(STATUS "CMAKE_DEBUG_POSTFIX: ${CMAKE_DEBUG_POSTFIX}")
message(STATUS "")