From 696ecd674d575deb1c9b798c2029efcaa2b076c6 Mon Sep 17 00:00:00 2001 From: Johannes Schneider Date: Mon, 31 May 2021 23:36:57 +0200 Subject: [PATCH] Replace add_definitions with add_compile_definitions --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1a56ddd..d23bddf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,7 +36,7 @@ if (VMA_BUILD_EXAMPLE_APP) # Visual Studio specific settings if(${CMAKE_GENERATOR} MATCHES "Visual Studio.*") # Use Unicode instead of multibyte set - add_definitions(-DUNICODE -D_UNICODE) + add_compile_definitions(UNICODE _UNICODE) # Set VmaExample as startup project set_property(DIRECTORY ${PROJECT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT "VmaExample")