mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Select CMAKE_BUILD_TYPE if not specified
A suggestion by kcat to ensure CMake selects a reasonable default for the build type if users don't set it themselves.
This commit is contained in:
parent
cfe81bafe8
commit
f1fd27aeaf
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
project(OpenMW)
|
||||
|
||||
# If the user doesn't supply a CMAKE_BUILD_TYPE via command line, choose one for them.
|
||||
IF(NOT CMAKE_BUILD_TYPE)
|
||||
SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
|
||||
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
|
||||
FORCE)
|
||||
ENDIF()
|
||||
|
||||
if (APPLE)
|
||||
set(APP_BUNDLE_NAME "${CMAKE_PROJECT_NAME}.app")
|
||||
|
||||
|
|
Loading…
Reference in a new issue