mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 02:31:46 +00:00
Fixed MinGW detection.
This commit is contained in:
parent
5b5717e539
commit
2e8d17e7b7
@ -175,7 +175,7 @@ if (_GLFW_WIN32)
|
|||||||
# 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.
|
||||||
if (CMAKE_COMPILER_IS_GNUC)
|
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
|
||||||
add_definitions(-DUNICODE -DWINVER=0x0501)
|
add_definitions(-DUNICODE -DWINVER=0x0501)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user