From 70bd205bb1f8e45578bdc2fb28bd623c2e9e49d6 Mon Sep 17 00:00:00 2001 From: Kyle Schaefer Date: Sun, 11 Apr 2021 15:08:14 -0700 Subject: [PATCH] Adding messages to output CMAKE_C_FLAGS_DEBUG and CMAKE_CXX_FLAGS_DEBUG, this way when using Debug builds you can see which debug flags are set --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ba93bcdd..7d874d53f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2384,6 +2384,11 @@ foreach(_OPT ${ALLOPTIONS}) string(RANDOM LENGTH ${_PADLEN} ALPHABET " " _PADDING) message_tested_option(${_OPT} ${_PADDING}) endforeach() +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + message(STATUS "") + message(STATUS " CMAKE_C_FLAGS_DEBUG: ${CMAKE_C_FLAGS_DEBUG}") + message(STATUS " CMAKE_CXX_FLAGS_DEBUG: ${CMAKE_CXX_FLAGS_DEBUG}") +endif() message(STATUS "") message(STATUS " CFLAGS: ${CMAKE_C_FLAGS}") message(STATUS " EXTRA_CFLAGS: ${EXTRA_CFLAGS}")