CMake: Disable plain "Release" builds

Having a build type that's called "Release" makes people thing they
should use it when they want optimized builds. They shouldn't. They
should be using RelWithDebInfo instead, so at least trying to debug
errors isn't entirely futile.
liquid_container
Nicolas Hake 2016-03-31 20:28:33 +02:00
parent 3922e7c5ee
commit d3d41721f0
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@
# for the above references.
cmake_minimum_required (VERSION 3.0.2)
# Don't allow people to build "Release" builds because there's no reason to do that.
# Use one of RelWithDebInfo or MinSizeRel instead.
set(CMAKE_CONFIGURATION_TYPES Debug RelWithDebInfo MinSizeRel CACHE STRING "List of supported configuration types." FORCE)
project (openclonk CXX C)
# CMP0054: Only interpret if() arguments as variables or keywords when unquoted