From 2e8d17e7b7c59b72961a65608487a6c5a2ebc460 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 25 Mar 2014 11:46:33 +0100 Subject: [PATCH] Fixed MinGW detection. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9ab1aa7..af9929c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,7 +175,7 @@ if (_GLFW_WIN32) # 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 # 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) endif() endif()