File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
166
166
else ()
167
167
include_directories (${LIBXML2_INCLUDE_DIR} )
168
168
endif ()
169
- set (LIBXML2_LIBS "xml2" )
170
169
endif ()
171
170
endif ()
172
171
endif ()
Original file line number Diff line number Diff line change 1
- set (system_libs )
2
- if ( CMAKE_HOST_UNIX )
3
- if ( LLVM_LIBXML2_ENABLED )
4
- set (system_libs ${system_libs} ${LIBXML2_LIBS} )
5
- endif ()
6
- endif ()
7
-
8
1
add_llvm_component_library (LLVMWindowsManifest
9
2
WindowsManifestMerger.cpp
10
3
11
4
ADDITIONAL_HEADER_DIRS
12
5
${LLVM_MAIN_INCLUDE_DIR} /llvm/WindowsManifest
13
- ${Backtrace_INCLUDE_DIRS}
6
+ ${Backtrace_INCLUDE_DIRS} )
14
7
15
- LINK_LIBS ${system_libs}
16
- )
17
-
18
- set_property (TARGET LLVMWindowsManifest PROPERTY LLVM_SYSTEM_LIBS "${system_libs} " )
8
+ if (LIBXML2_LIBRARIES )
9
+ target_link_libraries (LLVMWindowsManifest PUBLIC ${LIBXML2_LIBRARIES} )
10
+ set_property (TARGET LLVMWindowsManifest PROPERTY
11
+ LLVM_SYSTEM_LIBS ${LIBXML2_LIBRARIES} )
12
+ endif ()
You can’t perform that action at this time.
0 commit comments