fix debug macro definition when cmake is not invoked from cmd

This commit is contained in:
ohyzha
2024-07-22 11:05:30 +03:00
parent dae57bfc7f
commit 6be7262059

View File

@@ -112,10 +112,7 @@ LinkCurl(openVulkanoCpp)
add_compile_definitions(LIBARCHIVE_STATIC)
add_compile_definitions(NOMINMAX)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_definitions(DEBUG)
endif()
add_compile_definitions("DEBUG=$<CONFIG:Debug>")
SetGlmDefines(openVulkanoCpp)