[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.150 1.151
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Nov 20 08:37:17 EST 2009
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv22726/Source/kwsys
Modified Files:
CMakeLists.txt
Log Message:
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.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/CMakeLists.txt,v
retrieving revision 1.150
retrieving revision 1.151
diff -C 2 -d -r1.150 -r1.151
*** CMakeLists.txt 28 Sep 2009 15:37:21 -0000 1.150
--- CMakeLists.txt 20 Nov 2009 13:37:10 -0000 1.151
***************
*** 104,107 ****
--- 104,112 ----
# 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.
***************
*** 113,117 ****
ENDIF(NOT KWSYS_NAMESPACE)
IF(KWSYS_STANDALONE)
- CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
--- 118,121 ----
More information about the Cmake-commits
mailing list