CMake: Don't try to descend into projects/compiler-rt, it doesn't work.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 22 Jan 2010 18:14:27 +0000 (18:14 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 22 Jan 2010 18:14:27 +0000 (18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94187 91177308-0d34-0410-b5e6-96231b3b80d8

projects/CMakeLists.txt

index 78e12fd34a047db8d340cc5d6716fcb824222111..1a286db9ec660be163198b9536ec544727b4ce7d 100644 (file)
@@ -4,6 +4,8 @@
 file(GLOB entries *)
 foreach(entry ${entries})
   if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
-    add_subdirectory(${entry})
+    if(NOT (${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt))
+      add_subdirectory(${entry})
+    endif()
   endif()
 endforeach(entry)