From 0229f9b1a4d8df88fc739f1b78f19f7f665e3437 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sun, 15 Mar 2020 09:44:59 +0100 Subject: [PATCH] CMakeLists.txt: report generated CMAKE_CONFIGURATION_TYPES We might want to customize this in feature for multi-config builds (e.g. a Visual studio build with both Debug and Release configurations). Output the variable value for user awareness. --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 74467c29d..1f7919734 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -263,6 +263,11 @@ file(COPY "raymath.h" DESTINATION ".") file(COPY "raudio.h" DESTINATION ".") # Print the flags for the user +if (DEFINED CMAKE_BUILD_TYPE) + message(STATUS "Generated build type: ${CMAKE_BUILD_TYPE}") +else() + message(STATUS "Generated config types: ${CMAKE_CONFIGURATION_TYPES}") +endif() message(STATUS "Compiling with the flags:") message(STATUS " PLATFORM=" ${PLATFORM_CPP}) message(STATUS " GRAPHICS=" ${GRAPHICS})