Add ThreadSan/AddressSan build types and print table

This commit is contained in:
Dennis Klein
2018-07-27 16:21:31 +02:00
committed by Dennis Klein
parent f5e3212cbf
commit c064da91df
2 changed files with 26 additions and 4 deletions

View File

@@ -166,6 +166,23 @@ install_cmake_package()
# Summary ######################################################################
if(CMAKE_CONFIGURATION_TYPES)
message(STATUS " ")
message(STATUS " ${Cyan}BUILD TYPE CXX FLAGS${CR}")
string(TOUPPER "${CMAKE_BUILD_TYPE}" selected_type)
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}")
else()
pad("${type}" 18 " " type_padded)
message(STATUS " ${BWhite}${type_padded}${CR}${CMAKE_CXX_FLAGS_${type_upper}}")
endif()
unset(type_padded)
unset(type_upper)
endforeach()
endif()
if(PROJECT_PACKAGE_DEPENDENCIES)
message(STATUS " ")
message(STATUS " ${Cyan}DEPENDENCY FOUND VERSION PREFIX${CR}")