[CMAKE] CMakeLists.txt: Print CMAKE_CONFIGURATION_TYPES

Follow-up to d10728a.
This commit is contained in:
Serge Gautherie 2020-09-08 04:28:50 +02:00 committed by Jérôme Gardou
parent 9f3ed60ea4
commit b62f0d0fa3

View file

@ -132,8 +132,14 @@ else()
# We don't need CMake importlib handling. # We don't need CMake importlib handling.
unset(CMAKE_IMPORT_LIBRARY_SUFFIX) unset(CMAKE_IMPORT_LIBRARY_SUFFIX)
# Print build type # Print build type(s)
message("-- Build Type: ${CMAKE_BUILD_TYPE}") if(CMAKE_CONFIGURATION_TYPES)
# Multi-config generators, like Visual Studio (MSBuild).
message("-- Configuration types: ${CMAKE_CONFIGURATION_TYPES}")
else()
# Single-configuration generators, like Ninja.
message("-- Build type: ${CMAKE_BUILD_TYPE}")
endif()
# Always add /MT in VS CMAKE_GENERATOR and define _SBCS otherwise VS thinks it's a multi-byte or whatever project # Always add /MT in VS CMAKE_GENERATOR and define _SBCS otherwise VS thinks it's a multi-byte or whatever project
if (MSVC_IDE) if (MSVC_IDE)