[clang-scan-deps] Fix builds with BUILD_SHARED_LIBS=ON
authorMartin Storsjö <martin@martin.st>
Thu, 12 Sep 2024 20:11:27 +0000 (23:11 +0300)
committerTobias Hieta <tobias@hieta.se>
Tue, 1 Oct 2024 06:53:03 +0000 (08:53 +0200)
This fixes building in this configuration after
87e1104cf0e2de0d04bee2944893fa7897277b2f.

(cherry picked from commit aa3465793a250faa5426ac626989375465256658)

clang/tools/clang-scan-deps/CMakeLists.txt

index f0be6a546ff88293b8e1285ae6316f49cfe3731c..10bc0ff23c5482584dcf413049afdf24e3325e72 100644 (file)
@@ -1,4 +1,5 @@
 set(LLVM_LINK_COMPONENTS
+  ${LLVM_TARGETS_TO_BUILD}
   Core
   Option
   Support