cmake question

Langer, Stephen A. (Fed) stephen.langer at
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}")
   Python is /Applications/

/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.


 -- Steve

More information about the macports-users mailing list