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.
This commit is contained in:
Brad King 2009-07-24 17:33:11 -04:00
parent 6414fa21fe
commit 7b299306fd
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ ENDIF(COMMAND CMAKE_POLICY)
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
# Allow empty endif() and such with CMake 2.4.
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
#-----------------------------------------------------------------------