Results 1 to 4 of 4

Thread: Passing -j option to make from qmake

  1. #1
    Join Date
    May 2011
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Passing -j option to make from qmake

    Hi.

    Is there a way to pass the -j option to make from the .pro-file?

    I've tried using QMAKE_CXXFLAGS, but I'm not sure if this is the way to go.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Passing -j option to make from qmake

    You can set an env variable (not a qmake variable!) called MAKEOPTS to -j
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2011
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: Passing -j option to make from qmake

    Thank you for your reply.

    Will this work on windows as well?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Passing -j option to make from qmake

    I don't see why it wouldn't.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Does qmake support make install option?
    By hakermania in forum Newbie
    Replies: 14
    Last Post: 31st October 2010, 09:52
  2. qmake option to create pro file from vs2005 .sln
    By dpatel in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2010, 07:45
  3. Have qmake add the C debugging option (-g)
    By kiss-o-matic in forum Qt Programming
    Replies: 5
    Last Post: 26th January 2010, 06:09
  4. qmake: removing --no-undefined option for libs.
    By davemar in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2009, 10:08
  5. Window OS make distclean && qmake && make one line
    By patrik08 in forum General Programming
    Replies: 4
    Last Post: 22nd March 2007, 11:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.