Add hint how to change build type and change color of selected type

This commit is contained in:
Dennis Klein 2018-07-30 13:09:58 +02:00 committed by Dennis Klein
parent 1e0159b775
commit 924c8ac5f6

View File

@ -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 " ")