Setting default make options for Qt Creator?

后端 未结 4 1157
渐次进展
渐次进展 2021-02-01 20:37

How can i override default make parameters , which is:

make -w

Each time i create a project , i had to modify project settings , adding -j4

4条回答
  •  一生所求
    2021-02-01 21:29

    After attempting implement the fix described in the question I eventually found the following (clearly this in only a solution to linux's that use the freedesktop concept of .desktop files):

    The line in "/usr/local/share/applications/Nokia-QtCreator.desktop" was:

    Exec=/opt/qtcreator-2.5.2/bin/qtcreator.sh %F
    

    I changed it to:

    Exec=env MAKEFLAGS=-j16 /opt/qtcreator-2.5.2/bin/qtcreator.sh %F
    

    And got the functionality requested in the question.

    Ok, I have no idea why following the instructions in the question I didn't get there but I didn't. I hope this explanation will help someone.

提交回复
热议问题