[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.155 1.156

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Jul 24 17:33:13 EDT 2009


Update of /cvsroot/CMake/CMake
In directory public:/mounts/ram/cvs-serv10914

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Allow empty endif() and such with CMake 2.4

This allows us to use empty endif() and similar block terminators when
building with CMake 2.4.  It is allowed by default with 2.6 already.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/CMakeLists.txt,v
retrieving revision 1.155
retrieving revision 1.156
diff -C 2 -d -r1.155 -r1.156
*** CMakeLists.txt	24 Jul 2009 17:17:36 -0000	1.155
--- CMakeLists.txt	24 Jul 2009 21:33:11 -0000	1.156
***************
*** 7,10 ****
--- 7,12 ----
  MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
  
+ # Allow empty endif() and such with CMake 2.4.
+ SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
  
  



More information about the Cmake-commits mailing list