[python3] vcpkg-cmake-wrapper.cmake prevents finding system installed Python #42322
Labels
category:port-feature
The issue is with a library, which is requesting new capabilities that didn’t exist
One of the packages listed in my manifest ("pybind11") has the "python3" package listed as a dependency which causes vcpkg to install Python 3.11. However, I have by own version of Python that I want to use like so:
find_package(Python3 3.12 COMPONENTS Interpreter Development REQUIRED)
. When I didn't have vcpkg's Pyton 3.11 installed this worked fine, however I am now getting an error.It seems that this is because of this section in vcpkg-cmake-wrapper is overriding cmake's default behavior for finding python in order to force that VCPKG's version is found.
Environment
Expected behavior
CMake's
find_package(Python3 3.12 COMPONENTS Interpreter Development REQUIRED)
works even when VCPKg has installed PythonThe text was updated successfully, but these errors were encountered: