TestToolsetHostArchNone.cmake 707 B

123456789101112131415
  1. message(STATUS "CMAKE_VS_PLATFORM_TOOLSET='${CMAKE_VS_PLATFORM_TOOLSET}'")
  2. message(STATUS "CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE='${CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE}'")
  3. if(CMAKE_GENERATOR MATCHES "Visual Studio 1[6]")
  4. cmake_host_system_information(RESULT is_64_bit QUERY IS_64BIT)
  5. if(is_64_bit)
  6. if(NOT "${CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE}" STREQUAL "x64")
  7. message(FATAL_ERROR "CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE is not 'x64' as expected.")
  8. endif()
  9. endif()
  10. else()
  11. if(NOT "${CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE}" STREQUAL "")
  12. message(FATAL_ERROR "CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE is not empty as expected.")
  13. endif()
  14. endif()