diff options
author | Brad King <brad.king@kitware.com> | 2014-09-05 19:40:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-10 15:21:50 (GMT) |
commit | 09ab207c668deadea3635a20812fa2f478c17f9f (patch) | |
tree | 7c3bdee26a650942d2659573d523752daa1e964a /Tests/RunCMake/GeneratorPlatform | |
parent | 6944997bd6aa69fdf88f8e4e154e68d57195b20b (diff) | |
download | CMake-09ab207c668deadea3635a20812fa2f478c17f9f.zip CMake-09ab207c668deadea3635a20812fa2f478c17f9f.tar.gz CMake-09ab207c668deadea3635a20812fa2f478c17f9f.tar.bz2 |
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/RunCMake/GeneratorPlatform')
-rw-r--r-- | Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake index 442eb9f..89cc712 100644 --- a/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake +++ b/Tests/RunCMake/GeneratorPlatform/RunCMakeTest.cmake @@ -1,13 +1,12 @@ include(RunCMake) +set(RunCMake_GENERATOR_PLATFORM "") run_cmake(NoPlatform) if("${RunCMake_GENERATOR}" MATCHES "^Visual Studio ([89]|1[0124])( 20[0-9][0-9])?$") - set(RunCMake_TEST_OPTIONS "-DCMAKE_GENERATOR_PLATFORM=x64") + set(RunCMake_GENERATOR_PLATFORM "x64") run_cmake(x64Platform) - unset(RunCMake_TEST_OPTIONS) else() - set(RunCMake_TEST_OPTIONS "-DCMAKE_GENERATOR_PLATFORM=Bad Platform") + set(RunCMake_GENERATOR_PLATFORM "Bad Platform") run_cmake(BadPlatform) - unset(RunCMake_TEST_OPTIONS) endif() |