Describe the bug
find_package(libxml2) returning multiple include directory.
Environment
To Reproduce
Steps to reproduce the behavior:
- ./vcpkg install libxml2
find_package(libxml2) and print LIBXML2_INCLUDE_DIR
- Try compile any old-enough LLVM version like 11.x with Vcpkg CMake toolchain
Expected behavior
LIBXML2_INCLUDE_DIR should be, quoting CMake documentation the directory containing LibXml2 headers, it's not a plural
Failure logs
-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
CMake Error at cmake/config-ix.cmake:158 (if):
if given arguments:
"(" "CMAKE_OSX_SYSROOT" ")" "AND" "(" "EXISTS" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk//Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/libxml2" "/Users/naville/Build/sysroot/installed/x64-osx/include" ")"
Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:617 (include)
Additional context
See comments below
Describe the bug
find_package(libxml2) returning multiple include directory.
Environment
To Reproduce
Steps to reproduce the behavior:
find_package(libxml2) and print LIBXML2_INCLUDE_DIRExpected behavior
LIBXML2_INCLUDE_DIRshould be, quoting CMake documentationthe directory containing LibXml2 headers, it's not a pluralFailure logs
Additional context
See comments below