@Mesrine said in Cmake recompile qml modules even if the qml files did not change.:
Is there a way to stop this behavior?
You have 2 options:
Use the Ninja generator instead of the Makefile generator (recommended), OR Upgrade to Qt 6.5.2 (see https://bugreports.qt.io/browse/QTBUG-106683 )Note that Qt 6.5.2 no longer causes the Makefile generator to rebuild the *.o and *.so files unnecessarily, but there are still other inefficiencies: https://bugreports.qt.io/browse/QTBUG-115166
@d_h_mcinnes said in Cmake recompile qml modules even if the qml files did not change.:
I notice that if I build my project from the command line, it rebuilds the .qml files every time. However, if I build from inside qtcreator, it only rebuilds when necessary.
It sounds like Qt Creator uses the Ninja generator but your command line does not.