mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-01 15:35:47 +00:00
cmake: don't set build type when building with msvc
msvc has its own build type handling; with this asserts are on in debug/relwithdebinfo mode and off in release mode, as they should be.
This commit is contained in:
parent
5c4e4450ba
commit
6047dd61b1
1 changed files with 5 additions and 3 deletions
|
@ -11,9 +11,11 @@ INCLUDE(CheckCXXCompilerFlag)
|
||||||
INCLUDE(CheckFunctionExists)
|
INCLUDE(CheckFunctionExists)
|
||||||
|
|
||||||
# if no build type was provided, set a default one
|
# if no build type was provided, set a default one
|
||||||
IF(NOT CMAKE_BUILD_TYPE)
|
IF(NOT MSVC)
|
||||||
|
IF(NOT CMAKE_BUILD_TYPE)
|
||||||
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build (Debug, RelWithDebInfo, Release)" FORCE)
|
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build (Debug, RelWithDebInfo, Release)" FORCE)
|
||||||
ENDIF(NOT CMAKE_BUILD_TYPE)
|
ENDIF(NOT CMAKE_BUILD_TYPE)
|
||||||
|
ENDIF(NOT MSVC)
|
||||||
|
|
||||||
# System fixups
|
# System fixups
|
||||||
IF(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
|
IF(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
|
||||||
|
|
Loading…
Reference in a new issue