de56f74611
Summary: Currently you can't install libc++ from within the LLVM tree without installing all of LLVM. This patch adds an install rule for libc++. Reviewers: mclow.lists, danalbert, jroelofs, EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11697 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@245470 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
586 B
CMake
26 lines
586 B
CMake
if (NOT LIBCXX_INSTALL_SUPPORT_HEADERS)
|
|
set(LIBCXX_SUPPORT_HEADER_PATTERN PATTERN "support" EXCLUDE)
|
|
endif()
|
|
set(LIBCXX_HEADER_PATTERN
|
|
PATTERN "*"
|
|
PATTERN "CMakeLists.txt" EXCLUDE
|
|
PATTERN ".svn" EXCLUDE
|
|
${LIBCXX_SUPPORT_HEADER_PATTERN}
|
|
)
|
|
|
|
file(COPY .
|
|
DESTINATION "${CMAKE_BINARY_DIR}/include/c++/v1"
|
|
FILES_MATCHING
|
|
${LIBCXX_HEADER_PATTERN}
|
|
)
|
|
|
|
if (LIBCXX_INSTALL_HEADERS)
|
|
install(DIRECTORY .
|
|
DESTINATION include/c++/v1
|
|
COMPONENT libcxx
|
|
FILES_MATCHING
|
|
${LIBCXX_HEADER_PATTERN}
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
|
)
|
|
endif()
|