TargetInstrInfo.h: Fix r240192. [-Wdocumentation]
[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) AND
10        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxxabi) AND
11        (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libunwind))
12       add_subdirectory(${entry})
13     endif()
14   endif()
15 endforeach(entry)
16
17 # Also add in libc++ and compiler-rt trees if present (and we have
18 # a sufficiently recent version of CMake where required).
19 if(${LLVM_BUILD_RUNTIME})
20   # MSVC isn't quite working with libc++ yet, disable it until issues are
21   # fixed.
22   if(NOT MSVC)
23     # libc++ uses the libc++abi target names so libc++abi should be added
24     # first.
25     add_llvm_external_project(libcxxabi)
26     add_llvm_external_project(libcxx)
27     add_llvm_external_project(libunwind)
28   endif()
29   if(NOT LLVM_BUILD_EXTERNAL_COMPILER_RT)
30     add_llvm_external_project(compiler-rt)
31   endif()
32 endif()
33
34 add_llvm_external_project(dragonegg)