diff options
author | Brad King <brad.king@kitware.com> | 2011-03-24 13:24:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-03-24 13:45:33 (GMT) |
commit | a75ebe3ea48c957e3e7b8c1438ceb6136595eb61 (patch) | |
tree | 946038ca7600d9066fba3d30518a219d9bf4af7c /Tests | |
parent | d5d661d2b259447edfc89d130878f3a9b2203ea1 (diff) | |
download | CMake-a75ebe3ea48c957e3e7b8c1438ceb6136595eb61.zip CMake-a75ebe3ea48c957e3e7b8c1438ceb6136595eb61.tar.gz CMake-a75ebe3ea48c957e3e7b8c1438ceb6136595eb61.tar.bz2 |
Refine unused cache variable warning
List all unused variables in one warning. Cleanup implementation to run
the check exactly once at the end of generation.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 2c11919..9fdc9f9 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1202,7 +1202,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/ --build-project WarnUnusedCliUnused --build-options "-DUNUSED_CLI_VARIABLE=Unused") SET_TESTS_PROPERTIES(WarnUnusedCliUnused PROPERTIES - PASS_REGULAR_EXPRESSION "CMake Warning: The variable, 'UNUSED_CLI_VARIABLE'") + PASS_REGULAR_EXPRESSION "CMake Warning:.*Manually-specified variables were not used by the project:.* UNUSED_CLI_VARIABLE") LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/WarnUnusedCliUnused") ADD_TEST(WarnUnusedCliUsed ${CMAKE_CTEST_COMMAND} |