cmake question
Langer, Stephen A. (Fed)
stephen.langer at nist.gov
Wed Mar 30 16:09:37 UTC 2022
Hi --
When using cmake from MacPorts, how can I get it to use python from MacPorts?
These lines in CMakeLists.txt
find_package(Python COMPONENTS Interpreter Development)
message("Python is ${Python_EXECUTABLE}")
print
Python is /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3.8
/opt/local/bin is at the top of my path, and I used "port select" to point both python and python3 to a version of python in /opt/local/bin.
Thanks.
-- Steve
More information about the macports-users
mailing list