Replies: 2 comments 1 reply
-
Same issue here. I need cmake to use the system python and not the one vckpg installed. Can't find a way to do this... |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is what I do. I put a single CMakeLists.txt file in a subdirectory, in which I do find_package (which is scoped to the directory), and declare global aliases that I can use throughout my project!
The cleaner way is to prevent Python from being built by VCPKG.. but if you can't do that, for whatever reason, then maybe that code helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I want to use numpy.
I have the following code in my project:
find_package(Python 3.6 COMPONENTS Interpreter Development.Module NumPy REQUIRED)
But it doesn't work. Because my vcpkg installing dir has python. But the python installation is kind of incomplete. It doesn't have pip or numpy. So I don't want to use it. I hope I can prevent it being found by the above code. I tried to manually set Python_EXECUTABLE/PYTHON_EXECUTABLE/Python_ROOT_DIR to the system-wide python installation, but none of them works.
My vcpkg file:
Beta Was this translation helpful? Give feedback.
All reactions