mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'vs-generator-platform'
be6a555dTests: Test setting a generator platform in a toolchain filed506fee8Tests: Use -A option to pass generator platform selection11c9ddd6ExternalProject: Use -A option to pass generator platform29bd843eCTest: Use -A option to pass generator platform selectioneb7d8156cmake: Add -A option to specify a generator platform
This commit is contained in:
@@ -1764,7 +1764,7 @@ function(_ep_add_configure_command name)
|
||||
if(cmake_generator)
|
||||
list(APPEND cmd "-G${cmake_generator}")
|
||||
if(cmake_generator_platform)
|
||||
list(APPEND cmd "-DCMAKE_GENERATOR_PLATFORM=${cmake_generator_platform}")
|
||||
list(APPEND cmd "-A${cmake_generator_platform}")
|
||||
endif()
|
||||
if(cmake_generator_toolset)
|
||||
list(APPEND cmd "-T${cmake_generator_toolset}")
|
||||
@@ -1779,7 +1779,7 @@ function(_ep_add_configure_command name)
|
||||
message(FATAL_ERROR "Option CMAKE_GENERATOR_PLATFORM not allowed without CMAKE_GENERATOR.")
|
||||
endif()
|
||||
if(CMAKE_GENERATOR_PLATFORM)
|
||||
list(APPEND cmd "-DCMAKE_GENERATOR_PLATFORM=${CMAKE_GENERATOR_PLATFORM}")
|
||||
list(APPEND cmd "-A${CMAKE_GENERATOR_PLATFORM}")
|
||||
endif()
|
||||
if(cmake_generator_toolset)
|
||||
message(FATAL_ERROR "Option CMAKE_GENERATOR_TOOLSET not allowed without CMAKE_GENERATOR.")
|
||||
|
||||
Reference in New Issue
Block a user