-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying Python version when running cmake #1893
Comments
I found was was causing the issue. ledger sources has its own FindPython cmake module. If I remove this module, and cmake uses its own modules, then I can build ledger with the following command:
|
It looks like these options were added in 3.16, but FindPython module in ledger sources is from 3.15: |
@q3aiml can you look into this? |
Can you update the FindPython module in ledger and submit a PR? |
That's strange, but tests are failing as new FindPython can't properly locate Python include path now and builds are failing. It can be manually specified in CMake arguments like this, but it has to be interpreter and include dirs together: Gentoo offers it's own functions for finding Python and passing it as arguments to CMake, so I didn't even check it without arguments. |
Hi!
I'm trying to build 3.2.0 with Python support. All dependencies are installed, however I have issue with adding Python support.
When running
cmake -DUSE_PYTHON=yes .
, it does detect Python, but only the latest version installed which is 3.8.2, but the main version I have is python 3.7 and Boost is also built only with python 3.7.I tired passing
-DPYTHON_EXECUTABLE=/usr/bin/python3.7
but that doesn't work:ledger-1.log
If I remove Python 3.8, then
cmake -DUSE_PYTHON=yes .
finishes without errors:ledger-2.log
I'm on Gentoo, the following deps are installed:
Is there another option that could help?
The text was updated successfully, but these errors were encountered: