shithub: rgbds

Download patch

ref: c85b48f23eba745ee961f96f4bbef16b40c58db3
parent: 5a9f2b7750fb60217a16ad4198d82d511bcd0498
author: James Larrowe <larrowe.semaj11@gmail.com>
date: Sun Aug 16 09:58:02 EDT 2020

Default to debug when building in develop mode

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,8 +15,13 @@
 option(DEVELOP "build in development mode" OFF)
 
 set(DEFAULT_BUILD_TYPE "Release")
-if(NOT CMAKE_BUILD_TYPE AND NOT DEVELOP)
-  set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}")
+set(DEVELOP_BUILD_TYPE "Debug")
+if(NOT CMAKE_BUILD_TYPE)
+  if(DEVELOP)
+    set(CMAKE_BUILD_TYPE "${DEVELOP_BUILD_TYPE}")
+  else()
+    set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}")
+  endif()
 endif()
 
 # get real path of source and binary directories