summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-27 18:22:58 (GMT)
committerBrad King <brad.king@kitware.com>2014-02-27 18:25:23 (GMT)
commit7cd239ed38b2951e7fdd506d24a3f8e723e95b5f (patch)
treea59e76ae28b4c55d496800272122d978bc3c42ef
parent0f9dbc1608969c3b2dd7e4842e338fa5f90f0b43 (diff)
downloadCMake-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.
-rw-r--r--Tests/RunCMake/RunCMake.cmake1
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