Search code examples
c++qtqt-creatorccache

Setting up ccache with Qt Creator on Windows


I'm trying to set up ccache in Qt Creator on Windows.

Unfortunatelly I couldn't find any good instruction. How to make it working?

I have ccache installed with Cygwin.

edit:

I've tried adding

QMAKE_CXX+="ccache g++"

as additional parameter in qmake build step.

But in compile output I still have "g++ -c -g -Wall ..." and I suppose it should be "ccache g++ ..."


Solution

  • It should be:

    "QMAKE_CXX=ccache g++"
    

    And you might need to rerun qmake from the Build menu if QtCreator doesn't update automatically the makefile after you add that parameter.