From d83f0d9e8d42421c9c18102fa84a91b849a2bfcd Mon Sep 17 00:00:00 2001 From: Nestorfish Date: Tue, 11 Oct 2016 03:34:33 +0200 Subject: [PATCH] CMake: Fix setting default value for CMAKE_BUILD_TYPE CMAKE_BUILD_TYPE "Release" default value was not set, quieting among others compilation warnings. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a5865f..f2b3f9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}") # Stuff & Paths if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build.") + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE) endif() set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")