[cmake] set a default for the build type

This commit is contained in:
Timothy Stack 2020-09-24 16:09:28 -07:00
parent 8f0c918bb3
commit 0e1eb418c8
1 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,14 @@
cmake_minimum_required(VERSION 3.2)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/cpp-pm/hunter/archive/v0.23.269.tar.gz"