diff options
author | Brad King <brad.king@kitware.com> | 2013-10-02 14:45:54 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-07 20:12:46 -0400 |
commit | 1763c31c3b964343b88f8f26dc2941dd8c0e1fbe (patch) | |
tree | c36ad902008dc72a82a628802595e7b6e3b391ba /Source/kwsys | |
parent | aa53ee57bb50faa3aa64e86cb58bbe2df6688335 (diff) | |
download | cmake-1763c31c3b964343b88f8f26dc2941dd8c0e1fbe.tar.gz |
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 'Source/kwsys')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 0f2783689d..a9d89d4742 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -85,6 +85,9 @@ # written. CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) +IF(POLICY CMP0025) + CMAKE_POLICY(SET CMP0025 NEW) +ENDIF() #----------------------------------------------------------------------------- # If a namespace is not specified, use "kwsys" and enable testing. |