[PATCH] D62336: [CMake] Fixing errors in r361513

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 11:45:18 PDT 2019


beanz created this revision.
beanz added reviewers: lebedev.ri, mclow.lists.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.

I somehow messed this up. libcxx appends the subdirectories itself, so we don't need to add them here.

Also, r361513 broke the "projects" build of libcxx because it always included the extra targets.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62336

Files:
  llvm/runtimes/CMakeLists.txt


Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -209,7 +209,7 @@
 
 else() # if this is included from LLVM's CMake
   include(LLVMExternalProjectUtils)
-  if (LLVM_EXTERNAL_LIBCXX_SOURCE_DIR)
+  if (LLVM_EXTERNAL_LIBCXX_SOURCE_DIR AND "libcxx" IN_LIST LLVM_ENABLE_RUNTIMES)
     set(LIBCXX_HEADER_DIR ${LLVM_INCLUDE_DIR}/c++/v1/)
     set(CXX_HEADER_TARGET runtime-libcxx-headers)
     add_subdirectory(${LLVM_EXTERNAL_LIBCXX_SOURCE_DIR}/include ${CXX_HEADER_TARGET})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62336.201031.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190523/363e909a/attachment.bin>


More information about the llvm-commits mailing list