1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00

yet another attempt to unfuck build and make sure assertions are enabled properly

This commit is contained in:
fgenesis 2023-12-21 06:05:18 +01:00
parent f2219ef50b
commit 66968836bc

View file

@ -57,6 +57,9 @@ OPTION(AQUARIA_USE_GLM "Use GLM for matrix math" TRUE)
OPTION(AQUARIA_DEBUG_SHOW_PATHS "Show important paths upon game start to aid in finding path problems" FALSE) OPTION(AQUARIA_DEBUG_SHOW_PATHS "Show important paths upon game start to aid in finding path problems" FALSE)
mark_as_advanced(AQUARIA_DEBUG_SHOW_PATHS) mark_as_advanced(AQUARIA_DEBUG_SHOW_PATHS)
#add_compile_options(-fsanitize=address)
#add_link_options(-fsanitize=address)
################ Look for external libraries ################ Look for external libraries
### Pick one: SDL 1.2 or SDL2 ### Pick one: SDL 1.2 or SDL2
@ -138,14 +141,17 @@ ELSE(AQUARIA_DEMO_BUILD)
ADD_DEFINITIONS(-DAQUARIA_BUILD_SCENEEDITOR=1) ADD_DEFINITIONS(-DAQUARIA_BUILD_SCENEEDITOR=1)
ENDIF(AQUARIA_DEMO_BUILD) ENDIF(AQUARIA_DEMO_BUILD)
IF(CMAKE_BUILD_TYPE STREQUAL "Release") IF(NOT MSVC)
ADD_DEFINITIONS(-DNDEBUG) # MSVC defines this in release mode by default, gcc/mingw do not # MSVC defines these in release mode by default, gcc/mingw do not
message(STATUS "This is a release build.") IF(CMAKE_BUILD_TYPE STREQUAL "Release")
ENDIF(CMAKE_BUILD_TYPE STREQUAL "Release") ADD_DEFINITIONS(-DNDEBUG)
IF(CMAKE_BUILD_TYPE STREQUAL "Debug") message(STATUS "This is a release build.")
ADD_DEFINITIONS(-D_DEBUG) # MSVC defines this in debug mode by default, gcc/mingw do not ENDIF(CMAKE_BUILD_TYPE STREQUAL "Release")
message(STATUS "This is a debug build.") IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug") ADD_DEFINITIONS(-D_DEBUG)
message(STATUS "This is a debug build.")
ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug")
ENDIF(NOT MSVC)
# FIXME: These should go # FIXME: These should go
IF(UNIX) IF(UNIX)