From 924c8ac5f670de454a6c2db186dc423fee9134ef Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Mon, 30 Jul 2018 13:09:58 +0200 Subject: [PATCH] Add hint how to change build type and change color of selected type --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4adf80e2..e79b3a6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,8 +177,8 @@ if(CMAKE_CONFIGURATION_TYPES) foreach(type IN LISTS CMAKE_CONFIGURATION_TYPES) string(TOUPPER "${type}" type_upper) if(type_upper STREQUAL selected_type) - pad("${type} >" 18 " " type_padded) - message(STATUS "${BBlue}< ${type_padded}${CR}${BWhite}${CMAKE_CXX_FLAGS_${type_upper}}${CR}") + pad("${type}" 18 " " type_padded) + message(STATUS "${BGreen}* ${type_padded}${CMAKE_CXX_FLAGS_${type_upper}}${CR}") else() pad("${type}" 18 " " type_padded) message(STATUS " ${BWhite}${type_padded}${CR}${CMAKE_CXX_FLAGS_${type_upper}}") @@ -186,6 +186,8 @@ if(CMAKE_CONFIGURATION_TYPES) unset(type_padded) unset(type_upper) endforeach() + message(STATUS " ") + message(STATUS " (Change the build type with ${BMagenta}-DCMAKE_BUILD_TYPE=...${CR})") endif() if(PROJECT_PACKAGE_DEPENDENCIES) message(STATUS " ")