Its not as simple as changing the order. If I have my own build of Qt4, and if FindQt4.cmake had this: find_program(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 qmake-mac qmake ...) and I try to use my build of Qt CMAKE_PREFIX_PATH=/home/me/qt/qt-4.7.2 cmake ../ It finds /usr/bin/qmake-qt4 instead, because it searched for qmake-qt4 in all possible paths before searching for qmake.
Currently, I think we need to keep "qmake" first. The proposed patch does improve the situation by making a separate find_program() call for each executable name. It also verifies the results of each find_program(). Clint On Friday, March 08, 2013 02:35:53 PM Marcus D. Hanwell wrote: > Hi, > > I notice that Arch has already patched this, but CMake master as of > aa027af9 still finds /usr/bin/qmake when a /usr/bin/qmake-qt4 is > available. This bug is reported here, > > http://public.kitware.com/Bug/view.php?id=13985 > > Is there any issue with changing the order so that if qmake-qt4 is > found that is used preferentially over qmake which it seems will tend > to be the Qt 5 qmake? Stephen mentions qtchooser but it isn't clear > how relevant that is to making the find module prefer a qt4 specific > suffix if one is found. I didn't look at the proposed patch that > closely, but would like to understand any constraints on changing the > binary name search order before proposing anything. > > Thanks, > > Marcus > -- > > 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers -- Clinton Stimpson Elemental Technologies, Inc Computational Simulation Software, LLC www.csimsoft.com -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
