[CMake] We need to explicitly add llvm-config before clang so that LLVM_BUILD_EXTERNA...
authorChris Bieneman <beanz@apple.com>
Fri, 2 Oct 2015 22:28:48 +0000 (22:28 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 2 Oct 2015 22:28:48 +0000 (22:28 +0000)
This patch is a required stepping stone to fix PR14109.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249202 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CMakeLists.txt

index 952e114408ad98a2490ee6667180323eaec23ff9..1b57d7abd13a53972a91509c5606edf45a80962f 100644 (file)
@@ -30,10 +30,11 @@ if(CYGWIN OR NOT LLVM_ENABLE_PIC)
   set(LLVM_TOOL_LLVM_LTO_BUILD Off)
 endif()
 
-# Add LTO and llvm-ar before clang, ExternalProject requires targets specified
-# in DEPENDS to exist before the call to ExternalProject_Add.
+# Add LTO, llvm-ar, and llvm-config before clang, ExternalProject requires
+# targets specified in DEPENDS to exist before the call to ExternalProject_Add.
 add_llvm_tool_subdirectory(lto)
 add_llvm_tool_subdirectory(llvm-ar)
+add_llvm_tool_subdirectory(llvm-config)
 
 # Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly
 # specified.