enforce cmake default build type (bug #23445)
If no build type is selected it can happen that the game builds without any optimization. Now the user has to explicitly specify the 'none' type if they want it.
This commit is contained in:
parent
3378e06966
commit
2d1e0804aa
2 changed files with 9 additions and 0 deletions
|
@ -91,6 +91,13 @@ option(ENABLE_SDL_GPU "Enable building with SDL_gpu (experimental" OFF)
|
|||
option(ENABLE_LIBPNG "Enable support for writing png files (screenshots, images)" ON)
|
||||
#option(ENABLE_HISTORY "Enable using GNU history for history in lua console" ON) -- This feature is not supported in cmake yet, there is no cmake script to find the lib
|
||||
|
||||
# if no build type is specified, it can happen that the game is built without
|
||||
# optimization (c.f. bug #23445), work around this by enforcing "release" type
|
||||
# if nothing was selected
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set( CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
||||
endif(NOT CMAKE_BUILD_TYPE)
|
||||
|
||||
if(NOT DEFINED ENABLE_DISPLAY_REVISION)
|
||||
# Test whether the code is used in a repository if not autorevision will
|
||||
# fail and should be disabled by default. If inside a repository enable
|
||||
|
|
|
@ -567,6 +567,8 @@ Version 1.13.0-dev:
|
|||
hexes.
|
||||
* Fix bug #23243: Segfault while clicking during [delay] in prestart.
|
||||
* Remove support for legacy style unit abilities descriptions.
|
||||
* Fixed bug #23445: set default build type in cmake to "Release" to ensure
|
||||
that the game is not unoptimized
|
||||
|
||||
Version 1.11.11:
|
||||
* Add-ons server:
|
||||
|
|
Loading…
Add table
Reference in a new issue