diff options
author | Brad King <brad.king@kitware.com> | 2014-02-27 18:22:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-27 18:25:23 (GMT) |
commit | 7cd239ed38b2951e7fdd506d24a3f8e723e95b5f (patch) | |
tree | a59e76ae28b4c55d496800272122d978bc3c42ef /Tests | |
parent | 0f9dbc1608969c3b2dd7e4842e338fa5f90f0b43 (diff) | |
download | CMake-7cd239ed38b2951e7fdd506d24a3f8e723e95b5f.zip CMake-7cd239ed38b2951e7fdd506d24a3f8e723e95b5f.tar.gz CMake-7cd239ed38b2951e7fdd506d24a3f8e723e95b5f.tar.bz2 |
Tests/RunCMake: Tell cmake not to report unused command-line options
On OS X we pass -DCMAKE_POLICY_DEFAULT_CMP0025=NEW to all tests.
Once tests start using cmake_minimum_required(VERSION 3.0) then
CMake will warn that CMAKE_POLICY_DEFAULT_CMP0025 is unused.
These warnings are not part of the expected test output and can
cause such tests to fail. Pass --no-warn-unused-cli to each test
cmake invocation to tell it not to produce these warnings.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/RunCMake.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index 1d1c523..ed3afc5 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -53,6 +53,7 @@ function(run_cmake test) -G "${RunCMake_GENERATOR}" -T "${RunCMake_GENERATOR_TOOLSET}" -DRunCMake_TEST=${test} + --no-warn-unused-cli ${RunCMake_TEST_OPTIONS} WORKING_DIRECTORY "${RunCMake_TEST_BINARY_DIR}" OUTPUT_VARIABLE actual_stdout |