summaryrefslogtreecommitdiffhomepage
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2020-03-15 09:44:59 +0100
committerAhmad Fatoum <[email protected]>2020-03-24 06:37:22 +0100
commit0229f9b1a4d8df88fc739f1b78f19f7f665e3437 (patch)
treef0f039e1f3d6fc6423b34449ee63b363de7211f1 /src/CMakeLists.txt
parent6bbaca118fc046207e52e5ebda06a74250a9d3d9 (diff)
downloadraylib-0229f9b1a4d8df88fc739f1b78f19f7f665e3437.tar.gz
raylib-0229f9b1a4d8df88fc739f1b78f19f7f665e3437.zip
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.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 74467c29..1f791973 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})