From 373196717f3096728f48f4dcf3f2d2e496104caf Mon Sep 17 00:00:00 2001 From: Jenny White Date: Sat, 28 Apr 2018 19:27:30 +0300 Subject: [PATCH] Default build type --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae87568..b4f5317 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,11 @@ # This builds a 32-bit version of library, building 64 bit is not supported yet. +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type") +endif() +set(CMAKE_BUILD_TYPE_VALUES "Debug;Release" CACHE INTERNAL "List of supported build") +set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_BUILD_TYPE_VALUES}) + cmake_minimum_required(VERSION 3.0) project(glez LANGUAGES C VERSION 0.0.1)