[llvm] r361535 - [CMake] Fixing errors in r361513
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 11:51:52 PDT 2019
Author: cbieneman
Date: Thu May 23 11:51:52 2019
New Revision: 361535
URL: http://llvm.org/viewvc/llvm-project?rev=361535&view=rev
Log:
[CMake] Fixing errors in r361513
Summary:
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.
Reviewers: lebedev.ri, mclow.lists
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62336
Modified:
llvm/trunk/runtimes/CMakeLists.txt
Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=361535&r1=361534&r2=361535&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Thu May 23 11:51:52 2019
@@ -209,7 +209,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_
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})
More information about the llvm-commits
mailing list