[CMake] CMake finds the wrong Python interpreter on Windows
Bill Hoffman
bill.hoffman at kitware.com
Thu Feb 25 14:00:23 EST 2010
David Cole wrote:
>
> Same problem as ever: when multiple versions are installed an automatic
> "find" result cannot be relied upon to choose the right one. In that
> case, caller should set PYTHON_EXECUTABLE explicitly prior to doing the
> find call.
>
> On the other hand, we should not have a version/path mismatch between
> python exes and libs and headers. We should consistently find one first,
> and then find the other stuff relative to that. Or leave that other
> stuff set as NOTFOUND if there are no libs/headers relative to the exe.
>
> This should be as easy as changing which Qt is found: change
> QT_QMAKE_EXECUTABLE and other stuff gets re-found. Same logic should
> apply here: change PYTHON_EXECUTABLE and other stuff should be re-found...
>
I guess what I was getting at was that on windows I don't think other
than cygwin the version number is put into the .exe name. So, we might
not want to look for version number names on windows for python.
-Bill
More information about the CMake
mailing list