cmake: replace custom variable with built-in one

This commit is contained in:
Duy Tran
2025-04-28 11:57:53 -04:00
parent 1d020d6db1
commit f0de896f36
4 changed files with 2 additions and 11 deletions

View File

@ -8,7 +8,7 @@ include(JoinPaths)
# Sets build type if not set by now
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
if(RAYLIB_IS_MAIN)
if(PROJECT_IS_TOP_LEVEL)
set(default_build_type Debug)
else()
message(WARNING "Default build type is not set (CMAKE_BUILD_TYPE)")