From b21ef44a055a0ffe432a38ecc0e405ace605df9c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 5 Jun 2016 10:43:04 -0400 Subject: [PATCH] Defaulted to debug mode. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ad81045..4c3a53f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,12 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8") # this must also go before project() set(MSVC_INCREMENTAL_DEFAULT ON) +# default to debug builds +# do this before project() just to be safe +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE DEBUG CACHE STRING "" FORCE) +endif() + project(libui LANGUAGES C CXX) option(BUILD_SHARED_LIBS "Whether to build libui as a shared library or a static library" ON)