mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Default to debug when building in develop mode
This commit is contained in:
@@ -15,8 +15,13 @@ project(rgbds
|
|||||||
option(DEVELOP "build in development mode" OFF)
|
option(DEVELOP "build in development mode" OFF)
|
||||||
|
|
||||||
set(DEFAULT_BUILD_TYPE "Release")
|
set(DEFAULT_BUILD_TYPE "Release")
|
||||||
if(NOT CMAKE_BUILD_TYPE AND NOT DEVELOP)
|
set(DEVELOP_BUILD_TYPE "Debug")
|
||||||
set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}")
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
|
if(DEVELOP)
|
||||||
|
set(CMAKE_BUILD_TYPE "${DEVELOP_BUILD_TYPE}")
|
||||||
|
else()
|
||||||
|
set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# get real path of source and binary directories
|
# get real path of source and binary directories
|
||||||
|
|||||||
Reference in New Issue
Block a user