summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-02 18:45:54 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-08 00:12:46 (GMT)
commit1763c31c3b964343b88f8f26dc2941dd8c0e1fbe (patch)
treec36ad902008dc72a82a628802595e7b6e3b391ba /Tests/RunCMake
parentaa53ee57bb50faa3aa64e86cb58bbe2df6688335 (diff)
downloadCMake-1763c31c3b964343b88f8f26dc2941dd8c0e1fbe.zip
CMake-1763c31c3b964343b88f8f26dc2941dd8c0e1fbe.tar.gz
CMake-1763c31c3b964343b88f8f26dc2941dd8c0e1fbe.tar.bz2
Set policy CMP0025 to NEW while building CMake itself
CMake is aware of the policy's NEW behavior and the AppleClang compiler id. Set the policy to NEW explicitly to avoid the warning and get the NEW behavior. Also teach the RunCMake test infrastructure to build tests with -DCMAKE_POLICY_DEFAULT_CMP0025=NEW to avoid the policy warning in test output that must match specific regular expressions.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/RunCMake.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake
index 00faa4c..6e58d62 100644
--- a/Tests/RunCMake/RunCMake.cmake
+++ b/Tests/RunCMake/RunCMake.cmake
@@ -36,6 +36,9 @@ function(run_cmake test)
if(NOT DEFINED RunCMake_TEST_OPTIONS)
set(RunCMake_TEST_OPTIONS "")
endif()
+ if(APPLE)
+ list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0025=NEW)
+ endif()
execute_process(
COMMAND ${CMAKE_COMMAND} "${RunCMake_TEST_SOURCE_DIR}"
-G "${RunCMake_GENERATOR}"