[Interest] qtchooser and the current importance/interest of QTDIR?

René J.V. Bertin rjvbertin at gmail.com
Wed Feb 18 22:40:52 CET 2015


On Wednesday February 18 2015 08:16:11 Thiago Macieira wrote:

> As for cmake, the answer is simple: they contain hardcoded absolute paths to 
> the Qt tools inside the Qt prefix. Those tools are expected to remain where 
> they are and not get renamed. They don't need the "-qt5" argument because 
> cmake isn't calling qtchooser, it's calling the tool directly.
> 
> For example:
> 
> /usr/bin/moc -> qtchooser
> /usr/lib64/qt5/bin/moc 	actual tool
> 
> The cmake file points to the latter and cmake never runs the former.


So that confirms what I thought: those files are modified (or created) so that they contain the correct paths, no need for special action as long as cmake can find them. Good, exactly what I was hoping to read.

Thanks,
René



More information about the Interest mailing list