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")
endif()
if(CMAKE_CL_64)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(wxARCH_SUFFIX "_x64")
endif()
else()