CMake: correctly detect 64bit for MinGW compilers

CMAKE_CL_64 is only defined when using the 64 bit cl compiler from Microsoft.
This commit is contained in:
Maarten Bent
2018-05-17 19:30:59 +02:00
parent 610db240a8
commit db49de9668
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ if(WIN32)
message(FATAL_ERROR "Unknown WIN32 compiler type") message(FATAL_ERROR "Unknown WIN32 compiler type")
endif() endif()
if(CMAKE_CL_64) if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(wxARCH_SUFFIX "_x64") set(wxARCH_SUFFIX "_x64")
endif() endif()
else() else()

View File

@@ -53,7 +53,7 @@ if(MSVC OR MINGW OR CYGWIN)
else() else()
set(wxREQUIRED_OS_DESC "Windows Vista / Windows Server 2008") set(wxREQUIRED_OS_DESC "Windows Vista / Windows Server 2008")
endif() endif()
if(CMAKE_CL_64) if(CMAKE_SIZEOF_VOID_P EQUAL 8)
wx_string_append(wxREQUIRED_OS_DESC " (x64 Edition)") wx_string_append(wxREQUIRED_OS_DESC " (x64 Edition)")
endif() endif()
elseif(APPLE AND NOT IPHONE) elseif(APPLE AND NOT IPHONE)