newbie python - cmake build problem I can't seem to fix...
Rainer Müller
raimue at macports.org
Fri Sep 9 09:13:12 PDT 2016
On 2016-09-09 17:32, Ken Cunningham wrote:
> I'm working on updating a port (hatari) that only builds with
> python2.7 (or more accurately, doesn't build with python35 selected ,
> but does build with python27 selected). it uses cmake, and
> FindPythonInterp to find python.
> <https://cmake.org/cmake/help/v3.0/module/FindPythonInterp.html>
PYTHON_EXECUTABLE is a cmake variable. Unlike make, cmake does not fill
in variables from the environment. Instead, you have to set/override
variables with command line arguments.
Try this:
configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7
Rainer
More information about the macports-dev
mailing list