1
0
Fork 0
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:
fgenesis 2024-07-14 01:52:27 +02:00
parent 5c4e4450ba
commit 6047dd61b1

View file

@ -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)
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build (Debug, RelWithDebInfo, Release)" FORCE) IF(NOT CMAKE_BUILD_TYPE)
ENDIF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build (Debug, RelWithDebInfo, Release)" FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
ENDIF(NOT MSVC)
# System fixups # System fixups
IF(CMAKE_SYSTEM_NAME STREQUAL "Haiku") IF(CMAKE_SYSTEM_NAME STREQUAL "Haiku")