b97736a23d
For VS generator names that do not specify the platform name, read CMAKE_GENERATOR_PLATFORM to get it. Extend the RunCMake.GeneratorPlatform test with a case covering use of the x64 platform when the test generator is a Visual Studio generator whose name does not specify a platform.
8 lines
239 B
CMake
8 lines
239 B
CMake
foreach(v CMAKE_GENERATOR_PLATFORM CMAKE_VS_PLATFORM_NAME)
|
|
if("x${${v}}" STREQUAL "xx64")
|
|
message(STATUS "${v} is 'x64' as expected.")
|
|
else()
|
|
message(FATAL_ERROR "${v} is '${${v}}' but should be 'x64'!")
|
|
endif()
|
|
endforeach()
|