Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Set make flag for all projects
QtWS25 Last Chance

Set make flag for all projects

Scheduled Pinned Locked Moved Unsolved General and Desktop
makeqmake
4 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pamplemousse MK 2
    wrote on 23 Feb 2017, 11:20 last edited by
    #1

    Hello,

    I would like to add the make flag -j4 to all my projects. Currently, I have to add it in every project opened in Qt Creator, in the field "Make argument" of the build step. I don't want to set it in the .pro file, because in our team any developers could need to set a different value of -j, depending on their computer.

    We saw that there is a file named qconfig.pri in the directory mkspecs of the SDK installation. Can I put the flag in that file ? Or is there another file more suitable for this kind of things ?

    K 1 Reply Last reply 23 Feb 2017, 16:57
    0
    • P Pamplemousse MK 2
      23 Feb 2017, 11:20

      Hello,

      I would like to add the make flag -j4 to all my projects. Currently, I have to add it in every project opened in Qt Creator, in the field "Make argument" of the build step. I don't want to set it in the .pro file, because in our team any developers could need to set a different value of -j, depending on their computer.

      We saw that there is a file named qconfig.pri in the directory mkspecs of the SDK installation. Can I put the flag in that file ? Or is there another file more suitable for this kind of things ?

      K Offline
      K Offline
      koahnig
      wrote on 23 Feb 2017, 16:57 last edited by
      #2

      @Pamplemousse-MK-2

      Are you using creator?

      There you should be able to go "Projects" under "Build&Run"->"build". There is possible to set the build environment
      You can add an entry
      MAKEFLAGS -j4
      for instance.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • P Offline
        P Offline
        Pamplemousse MK 2
        wrote on 24 Feb 2017, 09:05 last edited by
        #3

        Yes, we use Qt Creator and we always need to add this flag in the Build&Run options. I am looking for a global solution, with which I don't have to go the Build&Run options anymore for each new project.

        K 1 Reply Last reply 24 Feb 2017, 15:51
        0
        • P Pamplemousse MK 2
          24 Feb 2017, 09:05

          Yes, we use Qt Creator and we always need to add this flag in the Build&Run options. I am looking for a global solution, with which I don't have to go the Build&Run options anymore for each new project.

          K Offline
          K Offline
          koahnig
          wrote on 24 Feb 2017, 15:51 last edited by
          #4

          @Pamplemousse-MK-2

          When you are entering this on each machine where the creator is used, it will apply to all projects on that machine. Eventually you need to check whether it is updated for all projects already loaded in created. New projects are taking over those system environment settings.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          4/4

          24 Feb 2017, 15:51

          • Login

          • Login or register to search.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved