summaryrefslogtreecommitdiffstats
path: root/libcxx/lib
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-09-02 07:28:05 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-09-02 07:28:05 +0000
commitb422ecc7de0bb13695f308fd781f593f24152489 (patch)
treeb7f8ec7b80b997072f709469dd492a52a98955d1 /libcxx/lib
parent05c4b550c9ac99a99e58405cc54e27ba48de704f (diff)
downloadbcm5719-llvm-b422ecc7de0bb13695f308fd781f593f24152489.tar.gz
bcm5719-llvm-b422ecc7de0bb13695f308fd781f593f24152489.zip
[cmake] Provide an option to not install the support headers so that the cmake build can match the make build if requested.
llvm-svn: 189739
Diffstat (limited to 'libcxx/lib')
-rw-r--r--libcxx/lib/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index 45effccafe8..9f28f68b9aa 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -100,9 +100,15 @@ install(TARGETS cxx
ARCHIVE DESTINATION lib
)
+
+if (NOT LIBCXX_INSTALL_SUPPORT_HEADERS)
+ set(LIBCXX_SUPPORT_HEADER_PATTERN PATTERN "support" EXCLUDE)
+endif()
+
install(DIRECTORY ../include/
DESTINATION include/c++/v1
FILES_MATCHING
PATTERN "*"
PATTERN ".svn" EXCLUDE
+ ${LIBCXX_SUPPORT_HEADER_PATTERN}
)
OpenPOWER on IntegriCloud