Revert "[libunwind][CMake] Use libc++ headers when available"

This is causing build failure when building libc++abi with libunwind.

This reverts commit 42bf29501dfa79f211841de060386d539933e811.

llvm-svn: 294556
This commit is contained in:
Petr Hosek 2017-02-09 03:56:47 +00:00
parent 6a1ac5a380
commit 50b1a33211

View File

@ -282,23 +282,4 @@ endif()
include_directories(include)
find_path(
LIBUNWIND_LIBCXX_INCLUDES_INTERNAL
__libcpp_version
PATHS ${LLVM_MAIN_SRC_DIR}/projects/libcxx/include
${LLVM_MAIN_SRC_DIR}/runtimes/libcxx/include
NO_DEFAULT_PATH
)
if ((NOT LIBUNWIND_STANDALONE_BUILD OR HAVE_LIBCXX) AND
IS_DIRECTORY "${LIBUNWIND_LIBCXX_INCLUDES_INTERNAL}")
set(LIBUNWIND_CXX_INCLUDE_PATHS_DEFAULT "${LIBUNWIND_LIBCXX_INCLUDES_INTERNAL}")
endif()
set(LIBUNWIND_CXX_INCLUDE_PATHS "${LIBUNWIND_CXX_INCLUDE_PATHS_DEFAULT}" CACHE PATH
"Paths to C++ header directories separated by ';'.")
if (NOT LIBUNWIND_CXX_INCLUDE_PATHS STREQUAL "")
include_directories("${LIBUNWIND_CXX_INCLUDE_PATHS}")
endif()
add_subdirectory(src)