[cmake-developers] Qt 4 and 5 on the same system - qmake binary name priority

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Mar 8 14:35:53 EST 2013


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



More information about the cmake-developers mailing list