Remove dead code, we already require cmake 2.8.8.
[oota-llvm.git] / projects / CMakeLists.txt
1 # Discover the projects that use CMake in the subdirectories.
2 # Note that explicit cmake invocation is required every time a new project is
3 # added or removed.
4 file(GLOB entries *)
5 foreach(entry ${entries})
6   if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
7     if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND
8        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND
9        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx))
10       add_subdirectory(${entry})
11     endif()
12   endif()
13 endforeach(entry)
14
15 # Also add in libc++ and compiler-rt trees if present (and we have
16 # a sufficiently recent version of CMake where required).
17 if(${LLVM_BUILD_RUNTIME})
18   # MSVC isn't quite working with libc++ yet, disable it until issues are
19   # fixed.
20   if(NOT MSVC)
21     add_llvm_external_project(libcxx)
22   endif()
23   add_llvm_external_project(compiler-rt)
24 endif()
25
26 add_llvm_external_project(dragonegg)