Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RHEL system dependencies builds with installed libxml2
On RHEL 9 based Linux distributions, `libxml2` is found in `/lib64` by default since the `PATH` variable is inspected by CMake to find potential prefix paths (`/bin` is present in `PATH` before `/usr/bin`). This causes errors because no `/include` directory is present on Linux and this is not checked by the LibXml2 config file. Therefore, disable the inspection of the `PATH` variable by setting `NO_SYSTEM_ENVIRONMENT_PATH` option. See <https://cmake.org/cmake/help/v3.30/command/find_package.html#:~:text=Search the standard system environment variables> for more details.
- Loading branch information