mirror of https://github.com/tstack/lnav.git
[cmake] set a default for the build type
This commit is contained in:
parent
8f0c918bb3
commit
0e1eb418c8
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue