build: Add build type specific flags to -vvv

This commit is contained in:
patrick96 2019-04-09 00:30:49 +02:00 committed by Patrick Ziegler
parent d5112c9b66
commit f68a5e6ccf
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ string(REPLACE ";" ", " XPP_EXTENSION_LIST "${XPP_EXTENSION_LIST}")
configure_file( configure_file(
${CMAKE_CURRENT_LIST_DIR}/settings.hpp.cmake ${CMAKE_CURRENT_LIST_DIR}/settings.hpp.cmake
${CMAKE_BINARY_DIR}/generated-sources/settings.hpp ${CMAKE_BINARY_DIR}/generated-sources/settings.hpp
ESCAPE_QUOTES @ONLY) ESCAPE_QUOTES)
list(APPEND dirs ${CMAKE_BINARY_DIR}/generated-sources/) list(APPEND dirs ${CMAKE_BINARY_DIR}/generated-sources/)
set(APP_VERSION ${APP_VERSION} PARENT_SCOPE) set(APP_VERSION ${APP_VERSION} PARENT_SCOPE)

View File

@ -118,8 +118,8 @@ const auto print_build_info = [](bool extended = false) {
printf("\n"); printf("\n");
printf("Build type: @CMAKE_BUILD_TYPE@\n"); printf("Build type: @CMAKE_BUILD_TYPE@\n");
printf("Compiler: @CMAKE_CXX_COMPILER@\n"); printf("Compiler: @CMAKE_CXX_COMPILER@\n");
printf("Compiler flags: @CMAKE_CXX_FLAGS@\n"); printf("Compiler flags: @CMAKE_CXX_FLAGS@ ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}}\n");
printf("Linker flags: @CMAKE_EXE_LINKER_FLAGS@\n"); printf("Linker flags: @CMAKE_EXE_LINKER_FLAGS@ ${CMAKE_EXE_LINKER_FLAGS_${CMAKE_BUILD_TYPE_UPPER}}\n");
} }
}; };
// clang-format on // clang-format on