From 7b299306fd83d1a9a5089f4bede1affb7e300996 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 24 Jul 2009 17:33:11 -0400 Subject: [PATCH] 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. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d32c442c2..d753cad57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) #-----------------------------------------------------------------------