From fb41505a8fef3e3c8c2afd9aff12732480d63af7 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 20 May 2016 04:27:24 +0200 Subject: [PATCH] fix(build) Default to build type Release --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6143155d..6e23c0a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra -Wpedan set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -DDEBUG") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3") +if(NOT CMAKE_BUILD_TYPE) + message(STATUS "No build type specified; using Release") + set(CMAKE_BUILD_TYPE "Release") +endif() + # # Internal values and switches #