CMakeLists.txt: default to Debug build if not set

This commit is contained in:
veclavtalica 2024-07-08 19:13:53 +03:00
parent eba3f0a2d5
commit e1a3298398

View File

@ -11,6 +11,11 @@ find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED) find_package(SDL2_image REQUIRED)
find_package(SDL2_ttf REQUIRED) find_package(SDL2_ttf REQUIRED)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif ()
set(PHYSFS_BUILD_SHARED FALSE) set(PHYSFS_BUILD_SHARED FALSE)
set(PHYSFS_DISABLE_INSTALL TRUE) set(PHYSFS_DISABLE_INSTALL TRUE)
set(PHYSFS_TARGETNAME_UNINSTALL "physfs_uninstall") set(PHYSFS_TARGETNAME_UNINSTALL "physfs_uninstall")