File diff r24679:ada7b2cc1164 → r24680:911676af1512
cmake/InstallAndPackage.cmake
Show inline comments
 
@@ -67,16 +67,21 @@ else()
 
    string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCHITECTURE)
 
endif()
 

	
 
# Windows is a bit more annoying to detect; using the size of void pointer
 
# seems to be the most robust.
 
if(WIN32)
 
    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 
        set(ARCHITECTURE "win64")
 
    # Check if the MSVC platform has been defined
 
    if ("$ENV{Platform}" STREQUAL "arm64")
 
        set(ARCHITECTURE "arm64")
 
    else()
 
        set(ARCHITECTURE "win32")
 
        if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 
            set(ARCHITECTURE "win64")
 
        else()
 
            set(ARCHITECTURE "win32")
 
        endif()
 
    endif()
 
endif()
 
if(APPLE AND CMAKE_OSX_ARCHITECTURES)
 
    string(TOLOWER "${CMAKE_OSX_ARCHITECTURES}" ARCHITECTURE)
 
endif()