From ff566993defe78a705173ab7ba883c19b37c8143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 27 Aug 2022 14:50:05 +0200 Subject: Support Debug/Release configurations. --- c/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'c') diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt index 1bfcac3..b3a1671 100644 --- a/c/CMakeLists.txt +++ b/c/CMakeLists.txt @@ -8,6 +8,10 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) add_compile_definitions(UNICODE _UNICODE) +if(NOT CMAKE_CONFIGURATION_TYPES MATCHES "Release") + add_compile_definitions(_DEBUG) +endif() + add_executable(EpisodeBrowser WIN32) target_sources(EpisodeBrowser PRIVATE data.cpp -- cgit v1.2.3