Skip to content

Commit

Permalink
CMake: Fix setting default value for CMAKE_BUILD_TYPE
Browse files Browse the repository at this point in the history
CMAKE_BUILD_TYPE "Release" default value was not set, quieting among
others compilation warnings.
  • Loading branch information
Nestorfish authored and sfan5 committed Oct 11, 2016
1 parent c45965e commit d83f0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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")
Expand Down

0 comments on commit d83f0d9

Please sign in to comment.