From a646f51bca867e04254c5fdcb741741265bc4d6c 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. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d29ad8df..f09775a3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -140,7 +140,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()