forked from Mirrors/openclonk
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
parent
3922e7c5ee
commit
d3d41721f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue