1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[cmake] Use the external project machinery for libcxxabi so that it can

be disabled in CMake or relocated if desired.

llvm-svn: 213936
This commit is contained in:
Chandler Carruth 2014-07-25 10:27:40 +00:00
parent 47c4f52209
commit c2a42d0e7a

View File

@ -6,7 +6,8 @@ foreach(entry ${entries})
if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt) if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx)) (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx) AND
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxxabi))
add_subdirectory(${entry}) add_subdirectory(${entry})
endif() endif()
endif() endif()
@ -19,6 +20,7 @@ if(${LLVM_BUILD_RUNTIME})
# fixed. # fixed.
if(NOT MSVC) if(NOT MSVC)
add_llvm_external_project(libcxx) add_llvm_external_project(libcxx)
add_llvm_external_project(libcxxabi)
endif() endif()
if(NOT LLVM_BUILD_EXTERNAL_COMPILER_RT) if(NOT LLVM_BUILD_EXTERNAL_COMPILER_RT)
add_llvm_external_project(compiler-rt) add_llvm_external_project(compiler-rt)