Permalink
Browse files

build: at least improve the syntax a little bit

  • Loading branch information...
1 parent 4a3644b commit 3b764666d5f35243dc319fef5d102c2447422f5a @aristidb aristidb committed May 7, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 CMakeLists.txt
View
@@ -1,3 +1,5 @@
+SET (CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
+
IF(${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR})
message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files that cmake just created:\nrm -rf CMakeCache.txt CMakeFiles")
-ENDIF(${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR})
+ENDIF()

0 comments on commit 3b76466

Please sign in to comment.