summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-11-27 12:55:46 -0800
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-11-27 12:55:46 -0800
commitcfcfd8a056eb7c01bc76b745ce9f7839f0dcbc42 (patch)
tree6eb237ce83d81d9bf158533991610e73f5555b42 /llvm/lib
parent340e7c0b77a7037afefe7255503afe362967b577 (diff)
downloadbcm5719-llvm-cfcfd8a056eb7c01bc76b745ce9f7839f0dcbc42.tar.gz
bcm5719-llvm-cfcfd8a056eb7c01bc76b745ce9f7839f0dcbc42.zip
build: avoid cached literals being linked against
If the value of the LibXml2 search is cached, it can cause an errant link against LIBXML2_LIBRARIES-NOTFOUND if libxml2 is not found. Add a guard against this. Should repair the build bots.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/WindowsManifest/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/WindowsManifest/CMakeLists.txt b/llvm/lib/WindowsManifest/CMakeLists.txt
index 8868564da76..fe6ddcd414d 100644
--- a/llvm/lib/WindowsManifest/CMakeLists.txt
+++ b/llvm/lib/WindowsManifest/CMakeLists.txt
@@ -3,10 +3,10 @@ add_llvm_component_library(LLVMWindowsManifest
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/WindowsManifest
- ${Backtrace_INCLUDE_DIRS}
+ ${Backtrace_INCLUDE_DIRS})
- LINK_LIBS ${LIBXML2_LIBRARIES}
- )
-
-set_property(TARGET LLVMWindowsManifest PROPERTY
- LLVM_SYSTEM_LIBS ${LIBXML2_LIBRARIES})
+if(LIBXML2_LIBRARIES)
+ target_link_libraries(LLVMWindowsManifest PUBLIC ${LIBXML2_LIBRARIES})
+ set_property(TARGET LLVMWindowsManifest PROPERTY
+ LLVM_SYSTEM_LIBS ${LIBXML2_LIBRARIES})
+endif()
OpenPOWER on IntegriCloud