diff options
author | Brad King <brad.king@kitware.com> | 2013-10-02 18:45:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-08 00:12:46 (GMT) |
commit | 1763c31c3b964343b88f8f26dc2941dd8c0e1fbe (patch) | |
tree | c36ad902008dc72a82a628802595e7b6e3b391ba /Utilities/cmcurl/CMakeLists.txt | |
parent | aa53ee57bb50faa3aa64e86cb58bbe2df6688335 (diff) | |
download | CMake-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 'Utilities/cmcurl/CMakeLists.txt')
-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 74a713d..abf04d8 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 |