https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b62f0d0fa3af900554744…
commit b62f0d0fa3af900554744421c3c273d124f3a16b
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Tue Sep 8 04:28:50 2020 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Thu May 6 16:13:05 2021 +0200
[CMAKE] CMakeLists.txt: Print CMAKE_CONFIGURATION_TYPES
Follow-up to d10728a.
---
CMakeLists.txt | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d1e1e82eac4..c1fe5f46462 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -132,8 +132,14 @@ else()
# We don't need CMake importlib handling.
unset(CMAKE_IMPORT_LIBRARY_SUFFIX)
- # Print build type
- message("-- Build Type: ${CMAKE_BUILD_TYPE}")
+ # Print build type(s)
+ 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
if (MSVC_IDE)