Skip to content

Commit

Permalink
[cmake] set a default for the build type
Browse files Browse the repository at this point in the history
  • Loading branch information
tstack committed Sep 24, 2020
1 parent 8f0c918 commit 0e1eb41
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 0e1eb41

Please sign in to comment.