Add option to turn off installation of headers.

llvm-svn: 224162
This commit is contained in:
Eric Fiselier 2014-12-12 22:52:58 +00:00
parent fea9039511
commit bfd53cd2af
2 changed files with 8 additions and 5 deletions

View File

@ -47,6 +47,7 @@ option(LIBCXX_BUILD_32_BITS "Build 32 bit libc++" OFF)
option(LIBCXX_ENABLE_MONOTONIC_CLOCK
"Build libc++ with support for a monotonic clock.
This option may only be used when LIBCXX_ENABLE_THREADS=OFF." ON)
option(LIBCXX_INSTALL_HEADERS "Install the libc++ headers." ON)
option(LIBCXX_INSTALL_SUPPORT_HEADERS "Install libc++ support headers." ON)
if (LIBCXX_BUILT_STANDALONE)
set(LLVM_USE_SANITIZER "" CACHE STRING

View File

@ -14,9 +14,11 @@ file(COPY .
${LIBCXX_HEADER_PATTERN}
)
install(DIRECTORY .
DESTINATION include/c++/v1
FILES_MATCHING
${LIBCXX_HEADER_PATTERN}
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
if (LIBCXX_INSTALL_HEADERS)
install(DIRECTORY .
DESTINATION include/c++/v1
FILES_MATCHING
${LIBCXX_HEADER_PATTERN}
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
endif()