From 52b2775c2eeb89677b016d27b8a82eb1dc3f2cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Fri, 16 Apr 2021 17:09:44 +0200 Subject: [PATCH] Win32: Fix macros being enabled for other backends _UNICODE should not be defined for other backends even when built on Windows. (cherry picked from commit a646f51bca867e04254c5fdcb741741265bc4d6c) --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f29f9402..7f434baf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -131,7 +131,7 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR target_compile_options(glfw PRIVATE "-Wall") endif() -if (WIN32) +if (_GLFW_WIN32) target_compile_definitions(glfw PRIVATE _UNICODE) endif()