Defaulted to debug mode.

This commit is contained in:
Pietro Gagliardi 2016-06-05 10:43:04 -04:00
parent dac8aea49a
commit b21ef44a05
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8")
# this must also go before project() # this must also go before project()
set(MSVC_INCREMENTAL_DEFAULT ON) 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) project(libui LANGUAGES C CXX)
option(BUILD_SHARED_LIBS "Whether to build libui as a shared library or a static library" ON) option(BUILD_SHARED_LIBS "Whether to build libui as a shared library or a static library" ON)