diff options
author | Brad King <brad.king@kitware.com> | 2008-03-17 20:22:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-17 20:22:28 (GMT) |
commit | 33c84b50e9ae6f8d7cee4202356d906e1343034e (patch) | |
tree | 8b2d79e1f1a333b9204fe678fc78ca83f4b357f7 /Source/kwsys/CMakeLists.txt | |
parent | 317d1705af4ae81e4a0b74db6f538ab0a873b041 (diff) | |
download | CMake-33c84b50e9ae6f8d7cee4202356d906e1343034e.zip CMake-33c84b50e9ae6f8d7cee4202356d906e1343034e.tar.gz CMake-33c84b50e9ae6f8d7cee4202356d906e1343034e.tar.bz2 |
ENH: Set CMake Policy CMP0003 to NEW behavior to build without warnings with the upcoming CMake 2.6 release.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 0bedc61..07a3d2d 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -111,6 +111,12 @@ IF(NOT KWSYS_NAMESPACE) SET(KWSYS_NAMESPACE "kwsys") SET(KWSYS_STANDALONE 1) ENDIF(NOT KWSYS_NAMESPACE) +IF(KWSYS_STANDALONE) + CMAKE_MINIMUM_REQUIRED(VERSION 2.4) + IF(COMMAND CMAKE_POLICY) + CMAKE_POLICY(SET CMP0003 NEW) + ENDIF(COMMAND CMAKE_POLICY) +ENDIF(KWSYS_STANDALONE) #----------------------------------------------------------------------------- # The project name is that of the specified namespace. |