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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake