diff --git a/CMakeLists.txt b/CMakeLists.txt index 5dd37ff..a85cd4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,9 @@ project(SleakEngine) include(cmake/SleakCommon.cmake) -if(NOT MSVC AND CMAKE_BUILD_TYPE STREQUAL "Debug") +if(MSVC) + add_compile_definitions($<$:DEBUG>) +elseif(CMAKE_BUILD_TYPE STREQUAL "Debug") add_compile_definitions(_DEBUG DEBUG) endif()