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 /Utilities/cmcurl | |
| 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 'Utilities/cmcurl')
| -rw-r--r-- | Utilities/cmcurl/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index 74a713dd81..abf04d8b08 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -1,4 +1,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) +IF(POLICY CMP0025) + CMAKE_POLICY(SET CMP0025 NEW) +ENDIF() PROJECT(LIBCURL C) # Setup package meta-data |
