From 79ca9bdd9dbcf402d4f310f6b974140575eb85e7 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Wed, 6 May 2020 18:24:45 +0100 Subject: [PATCH] Default build to Release. (#177) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d910199..a2896dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 3.8) project(snmalloc C CXX) +if (NOT CMAKE_BUILD_TYPE) + message(STATUS "No build type selected, default to: Release") + set(CMAKE_BUILD_TYPE "Release") +endif() + include(CheckCXXCompilerFlag) include(CheckCSourceCompiles)