summary refs log tree commit diff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-02-02 16:16:51 +0100
committerMel <einebeere@gmail.com>2024-02-02 16:16:51 +0100
commitf08eae304a4fe986c9cf91a976e0fdfad9f2a16a (patch)
tree19f5300a37cf5484236f7b9e8ec2790e5f161172 /CMakeLists.txt
parenta4a61ac2e6389af0968ac4fb305b82c6eb90bf0e (diff)
downloadmeowcraft-f08eae304a4fe986c9cf91a976e0fdfad9f2a16a.tar.zst
meowcraft-f08eae304a4fe986c9cf91a976e0fdfad9f2a16a.zip
Enable assertions on RelWithDebInfo builds
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c14505..5fffbda 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,9 @@ project(meowcraft)
 set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
+# Enable assertions for RelWithDebInfo builds.
+string(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
+
 find_package(glfw3 3.3 REQUIRED)
 find_package(GLEW REQUIRED)