summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-20 17:04:08 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-20 17:04:08 (GMT)
commit9ec851bc90e594d4e9a886a75076cabbac6b079d (patch)
tree50cd2c6e2aecce83bc83cdca6ad6fc508a85f8a3
parent268448b89151cf80ac9d4d0ea974a2d4f17c3cd5 (diff)
downloadCMake-9ec851bc90e594d4e9a886a75076cabbac6b079d.zip
CMake-9ec851bc90e594d4e9a886a75076cabbac6b079d.tar.gz
CMake-9ec851bc90e594d4e9a886a75076cabbac6b079d.tar.bz2
KWSys: Set CMP0003 to NEW
The commit "Enable loose loop constructs in KWSys" set the minimum required CMake version to 2.4.5. This regressed the setting of CMP0003, so we restore it in this commit.
-rw-r--r--Source/kwsys/CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index aa02330..b48e032 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -104,6 +104,9 @@
# written.
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
+IF(COMMAND CMAKE_POLICY)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ENDIF(COMMAND CMAKE_POLICY)
# Allow empty endif() and such with CMake 2.4.
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
@@ -116,11 +119,6 @@ IF(NOT KWSYS_NAMESPACE)
SET(KWSYS_NAMESPACE "kwsys")
SET(KWSYS_STANDALONE 1)
ENDIF(NOT KWSYS_NAMESPACE)
-IF(KWSYS_STANDALONE)
- 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.