[libc-commits] [PATCH] D133960: [libc][cmake] separate installing headers
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Sep 16 15:50:39 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG70f1f302cae3: [libc][cmake] separate installing headers (authored by michaelrj).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133960/new/
https://reviews.llvm.org/D133960
Files:
libc/CMakeLists.txt
libc/include/CMakeLists.txt
Index: libc/include/CMakeLists.txt
===================================================================
--- libc/include/CMakeLists.txt
+++ libc/include/CMakeLists.txt
@@ -286,5 +286,5 @@
get_filename_component(nested_dir ${relative_path} DIRECTORY)
install(FILES ${header_file}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${nested_dir}
- COMPONENT ${LIBC_COMPONENT})
+ COMPONENT libc-headers)
endforeach()
Index: libc/CMakeLists.txt
===================================================================
--- libc/CMakeLists.txt
+++ libc/CMakeLists.txt
@@ -148,7 +148,7 @@
if(LLVM_LIBC_FULL_BUILD)
set(LIBC_TARGET libc)
set(LIBC_COMPONENT libc)
- set(LIBC_INSTALL_DEPENDS "libc;libc-headers;libc-startup")
+ set(LIBC_INSTALL_DEPENDS "libc;install-libc-headers;libc-startup")
set(LIBC_INSTALL_TARGET install-libc)
set(LIBC_ARCHIVE_NAME c)
else()
@@ -187,6 +187,15 @@
add_subdirectory(docs)
endif()
+
+if(LLVM_LIBC_FULL_BUILD)
+ add_llvm_install_targets(
+ install-libc-headers
+ DEPENDS libc-headers
+ COMPONENT libc-headers
+ )
+endif()
+
add_llvm_install_targets(
${LIBC_INSTALL_TARGET}
DEPENDS ${LIBC_INSTALL_DEPENDS}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133960.460932.patch
Type: text/x-patch
Size: 1188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220916/6b5da821/attachment.bin>
More information about the libc-commits
mailing list