comparison projects/CMakeLists.txt @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 1172e4bd9c6f
children 3a76565eade5
comparison
equal deleted inserted replaced
120:1172e4bd9c6f 121:803732b1fca8
8 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND 8 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND
9 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx) AND 9 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx) AND
10 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxxabi) AND 10 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxxabi) AND
11 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libunwind) AND 11 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libunwind) AND
12 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/test-suite) AND 12 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/test-suite) AND
13 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/parallel-libs)) 13 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/parallel-libs) AND
14 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/openmp))
14 add_subdirectory(${entry}) 15 add_subdirectory(${entry})
15 endif() 16 endif()
16 endif() 17 endif()
17 endforeach(entry) 18 endforeach(entry)
18 19
19 # Also add in libc++ and compiler-rt trees if present (and we have 20 # Also add in libc++ and compiler-rt trees if present (and we have
20 # a sufficiently recent version of CMake where required). 21 # a sufficiently recent version of CMake where required).
21 if(${LLVM_BUILD_RUNTIME}) 22 if(${LLVM_BUILD_RUNTIME})
22 # MSVC isn't quite working with libc++ yet, disable it until issues are 23 # MSVC isn't quite working with libc++ yet, disable it until issues are
23 # fixed. 24 # fixed.
24 if(NOT MSVC) 25 # FIXME: LLVM_FORCE_BUILD_RUNTIME is currently used by libc++ to force
26 # enable the in-tree build when targeting clang-cl.
27 if(NOT MSVC OR LLVM_FORCE_BUILD_RUNTIME)
25 # Add the projects in reverse order of their dependencies so that the 28 # Add the projects in reverse order of their dependencies so that the
26 # dependent projects can see the target names of their dependencies. 29 # dependent projects can see the target names of their dependencies.
27 add_llvm_external_project(libunwind) 30 add_llvm_external_project(libunwind)
28 add_llvm_external_project(libcxxabi) 31 add_llvm_external_project(libcxxabi)
29 add_llvm_external_project(libcxx) 32 add_llvm_external_project(libcxx)
33 endif() 36 endif()
34 endif() 37 endif()
35 38
36 add_llvm_external_project(dragonegg) 39 add_llvm_external_project(dragonegg)
37 add_llvm_external_project(parallel-libs) 40 add_llvm_external_project(parallel-libs)
41 add_llvm_external_project(openmp)