diff options
Diffstat (limited to 'Modules/FindGLEW.cmake')
-rw-r--r-- | Modules/FindGLEW.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindGLEW.cmake b/Modules/FindGLEW.cmake index 080371a..187b6a8 100644 --- a/Modules/FindGLEW.cmake +++ b/Modules/FindGLEW.cmake @@ -126,13 +126,12 @@ if(GLEW_VERBOSE) message(STATUS "FindGLEW: GLEW_INCLUDE_DIRS: ${GLEW_INCLUDE_DIRS}") endif() -if("${CMAKE_GENERATOR_PLATFORM}" MATCHES "x64" OR "${CMAKE_GENERATOR}" MATCHES "Win64") +if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(_arch "x64") else() set(_arch "Win32") endif() - set(__GLEW_CURRENT_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) __glew_set_find_library_suffix(SHARED) |