[libcxx] r224162 - Add option to turn off installation of headers.

Eric Fiselier eric at efcs.ca
Fri Dec 12 14:52:58 PST 2014


Author: ericwf
Date: Fri Dec 12 16:52:58 2014
New Revision: 224162

URL: http://llvm.org/viewvc/llvm-project?rev=224162&view=rev
Log:
Add option to turn off installation of headers.

Modified:
    libcxx/trunk/CMakeLists.txt
    libcxx/trunk/include/CMakeLists.txt

Modified: libcxx/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?rev=224162&r1=224161&r2=224162&view=diff
==============================================================================
--- libcxx/trunk/CMakeLists.txt (original)
+++ libcxx/trunk/CMakeLists.txt Fri Dec 12 16:52:58 2014
@@ -47,6 +47,7 @@ option(LIBCXX_BUILD_32_BITS "Build 32 bi
 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

Modified: libcxx/trunk/include/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/CMakeLists.txt?rev=224162&r1=224161&r2=224162&view=diff
==============================================================================
--- libcxx/trunk/include/CMakeLists.txt (original)
+++ libcxx/trunk/include/CMakeLists.txt Fri Dec 12 16:52:58 2014
@@ -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()





More information about the cfe-commits mailing list