Skip to content
Snippets Groups Projects
Commit 03f2cde3 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Replace CMake generator expression with variable

Generator expressions are amazing but best used in moderation.

(cherry picked from commit c1941937)
parent cd70e1bb
No related branches found
No related tags found
No related merge requests found
...@@ -130,8 +130,9 @@ endif() ...@@ -130,8 +130,9 @@ endif()
# the inclusion of stddef.h (by glfw3.h), which is itself included before # the inclusion of stddef.h (by glfw3.h), which is itself included before
# win32_platform.h. We define them here until a saner solution can be found # win32_platform.h. We define them here until a saner solution can be found
# NOTE: MinGW-w64 and Visual C++ do /not/ need this hack. # NOTE: MinGW-w64 and Visual C++ do /not/ need this hack.
target_compile_definitions(glfw PRIVATE if (MINGW)
"$<$<BOOL:${MINGW}>:UNICODE;WINVER=0x0501>") target_compile_definitions(glfw PRIVATE UNICODE WINVER=0x0501)
endif()
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
if (WIN32) if (WIN32)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment