[PATCH] D24015: [CMake] Copy headers relative to LLVM_BINARY_DIR
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 29 16:56:35 PDT 2016
beanz created this revision.
beanz added reviewers: bogner, EricWF.
beanz added a subscriber: cfe-commits.
This copy phase is only needed for in-tree builds, so we should be copying to the LLVM build directory's include dir instead of the sub-project include dir.
https://reviews.llvm.org/D24015
Files:
include/CMakeLists.txt
Index: include/CMakeLists.txt
===================================================================
--- include/CMakeLists.txt
+++ include/CMakeLists.txt
@@ -10,11 +10,13 @@
${LIBCXX_SUPPORT_HEADER_PATTERN}
)
-file(COPY .
- DESTINATION "${CMAKE_BINARY_DIR}/include/c++/v1"
- FILES_MATCHING
- ${LIBCXX_HEADER_PATTERN}
- )
+if(LLVM_BINARY_DIR)
+ file(COPY .
+ DESTINATION "${LLVM_BINARY_DIR}/include/c++/v1"
+ FILES_MATCHING
+ ${LIBCXX_HEADER_PATTERN}
+ )
+endif()
if (LIBCXX_INSTALL_HEADERS)
install(DIRECTORY .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24015.69637.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160829/547f0b42/attachment.bin>
More information about the cfe-commits
mailing list