mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-22 07:23:46 +01:00
CMake: Fix setting default value for CMAKE_BUILD_TYPE
CMAKE_BUILD_TYPE "Release" default value was not set, quieting among others compilation warnings.
This commit is contained in:
parent
c45965eb8d
commit
d83f0d9e8d
@ -10,7 +10,7 @@ set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}")
|
|||||||
# Stuff & Paths
|
# Stuff & Paths
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
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()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")
|
||||||
|
Loading…
Reference in New Issue
Block a user