summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-20 13:37:10 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-20 13:37:10 (GMT)
commit2a789187fc2154c3c3850933f30d45580d9b8076 (patch)
treee9486db86252f236de1a2a2a149838f32e007270 /Source
parentc6f13b97ea6df7b5990d9a51500c577808e217ff (diff)
downloadCMake-2a789187fc2154c3c3850933f30d45580d9b8076.zip
CMake-2a789187fc2154c3c3850933f30d45580d9b8076.tar.gz
CMake-2a789187fc2154c3c3850933f30d45580d9b8076.tar.bz2
Enable loose loop constructs in KWSys
We set CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS in KWSys's CMakeLists.txt file to enable simpler endif() syntax for CMake 2.4.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index c142bcb..09e3e20 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -103,6 +103,11 @@
# any outside mailing list and no documentation of the change will be
# written.
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
+
+# Allow empty endif() and such with CMake 2.4.
+SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
+
#-----------------------------------------------------------------------------
# If a namespace is not specified, use "kwsys" and enable testing.
# This should be the case only when kwsys is not included inside
@@ -112,7 +117,6 @@ IF(NOT KWSYS_NAMESPACE)
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)