From f08eae304a4fe986c9cf91a976e0fdfad9f2a16a Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 2 Feb 2024 16:16:51 +0100 Subject: Enable assertions on RelWithDebInfo builds --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit 1.4.1