mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
ci: support setting the generator platform and toolset
This commit is contained in:
@@ -37,6 +37,14 @@ if (NOT CTEST_CMAKE_GENERATOR)
|
||||
set(CTEST_CMAKE_GENERATOR "Ninja")
|
||||
endif ()
|
||||
|
||||
# Set the toolset and platform if requested.
|
||||
if (NOT "$ENV{CMAKE_GENERATOR_PLATFORM}" STREQUAL "")
|
||||
set(CTEST_CMAKE_GENERATOR_PLATFORM "$ENV{CMAKE_GENERATOR_PLATFORM}")
|
||||
endif ()
|
||||
if (NOT "$ENV{CMAKE_GENERATOR_TOOLSET}" STREQUAL "")
|
||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "$ENV{CMAKE_GENERATOR_TOOLSET}")
|
||||
endif ()
|
||||
|
||||
# Determine the track to submit to.
|
||||
set(ctest_track "Experimental")
|
||||
if (NOT "$ENV{CI_MERGE_REQUEST_ID}" STREQUAL "")
|
||||
|
||||
Reference in New Issue
Block a user