From 283a371f518301245a2ecf548ae55cf23698922c Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 23 May 2023 21:46:14 +0200 Subject: [PATCH] cmake: log when CMAKE_DEBUG_POSTFIX/CMAKE_BUILD_TYPE is changed --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54dca323..6638f1e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "")