diff options
| author | Mel <einebeere@gmail.com> | 2024-02-02 16:16:51 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-02 16:16:51 +0100 |
| commit | f08eae304a4fe986c9cf91a976e0fdfad9f2a16a (patch) | |
| tree | 19f5300a37cf5484236f7b9e8ec2790e5f161172 /CMakeLists.txt | |
| parent | a4a61ac2e6389af0968ac4fb305b82c6eb90bf0e (diff) | |
| download | meowcraft-f08eae304a4fe986c9cf91a976e0fdfad9f2a16a.tar.zst meowcraft-f08eae304a4fe986c9cf91a976e0fdfad9f2a16a.zip | |
Enable assertions on RelWithDebInfo builds
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 3 |
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) |
