brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1012 B · 910132a Raw
35 lines · plain
1include(GetLibraryName)2 3if(LLVM_ENABLE_LIBXML2)4  set(imported_libs LibXml2::LibXml2)5endif()6 7add_llvm_component_library(LLVMWindowsManifest8  WindowsManifestMerger.cpp9 10  ADDITIONAL_HEADER_DIRS11  ${LLVM_MAIN_INCLUDE_DIR}/llvm/WindowsManifest12  ${Backtrace_INCLUDE_DIRS}13 14  LINK_LIBS15  ${imported_libs}16 17  LINK_COMPONENTS18  Support19  )20 21# This block is only needed for llvm-config. When we deprecate llvm-config and22# move to using CMake export, this block can be removed.23if(LLVM_ENABLE_LIBXML2)24  # CMAKE_BUILD_TYPE is only meaningful to single-configuration generators.25  if(CMAKE_BUILD_TYPE)26    string(TOUPPER ${CMAKE_BUILD_TYPE} build_type)27    get_property(libxml2_library TARGET LibXml2::LibXml2 PROPERTY LOCATION_${build_type})28  endif()29  if(NOT libxml2_library)30    get_property(libxml2_library TARGET LibXml2::LibXml2 PROPERTY LOCATION)31  endif()32  get_library_name(${libxml2_library} libxml2_library)33  set_property(TARGET LLVMWindowsManifest PROPERTY LLVM_SYSTEM_LIBS ${libxml2_library})34endif()35