This matches the changes made to handling of zlib done in 10b1b4a
where we rely on find_package and the imported target rather than
manually appending the library and include paths. The use of
LLVM_LIBXML2_ENABLED has been replaced by LLVM_ENABLE_LIBXML2
thus reducing the number of variables.
Details
Details
- Reviewers
smeenai compnerd - Commits
- rGc4d7536136b3: [CMake] Simplify CMake handling for libxml2
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thank you for renaming the variable while at it - it's far more conventional.
llvm/lib/WindowsManifest/CMakeLists.txt | ||
---|---|---|
15 | Can you not get away with if(LLVM_ENABLE_LIBXML2) target_link_libraries(LLVMWindowsManifest PRIVATE LibXml2::LibXml2) endif() instead? | |
15–24 | A nice little comment to remind the reader that this is for llvm-config would be appreciated. |
Can you not get away with
instead?