summaryrefslogtreecommitdiff
path: root/Tests/StagingPrefix
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-05 15:40:01 -0400
committerBrad King <brad.king@kitware.com>2014-09-10 11:21:50 -0400
commit09ab207c668deadea3635a20812fa2f478c17f9f (patch)
tree7c3bdee26a650942d2659573d523752daa1e964a /Tests/StagingPrefix
parent6944997bd6aa69fdf88f8e4e154e68d57195b20b (diff)
downloadcmake-09ab207c668deadea3635a20812fa2f478c17f9f.tar.gz
Tests: Add generator platform support
Propagate CMAKE_GENERATOR_PLATFORM through the test hierarchy so that all tests can build with the selected generator platform, if any.
Diffstat (limited to 'Tests/StagingPrefix')
-rw-r--r--Tests/StagingPrefix/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/StagingPrefix/CMakeLists.txt b/Tests/StagingPrefix/CMakeLists.txt
index 922776d703..49ff7fee76 100644
--- a/Tests/StagingPrefix/CMakeLists.txt
+++ b/Tests/StagingPrefix/CMakeLists.txt
@@ -38,6 +38,7 @@ add_custom_command(
--build-project Producer
--build-target install
--build-generator ${CMAKE_GENERATOR}
+ --build-generator-platform "${CMAKE_GENERATOR_PLATFORM}"
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
--build-options
-DCMAKE_VERBOSE_MAKEFILE=1
@@ -71,6 +72,7 @@ add_custom_command(
--build-project Consumer
--build-target install
--build-generator ${CMAKE_GENERATOR}
+ --build-generator-platform "${CMAKE_GENERATOR_PLATFORM}"
--build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}"
--build-options
"-DCMAKE_FIND_ROOT_PATH=${CMAKE_BINARY_DIR}/ignored"