From b9e07113caf914cfb90132082d96277fd48e3fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Sat, 28 Aug 2021 19:20:28 +0200 Subject: [PATCH] cmake: add `DEBUG` define for debug builds --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f66f0c4ac..5507570fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ include(CPack) include(CMakeDependentOption) add_compile_definitions(CMAKE) +add_compile_definitions("$<$:DEBUG>") if(WIN32) # Disables *_s function warnings