Results 1 to 2 of 2

Thread: Overriding flags in qmake.conf

  1. #1
    Join Date
    May 2010
    Posts
    24
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Overriding flags in qmake.conf

    How do you override the values of qmake.conf?

    For example, I wanted to add -msse to my project.pro file, so I entered the following:
    QMAKE_CXXFLAGS += -msse

    That works. But I also wanted to compile for the native architecture, so I entered the following:
    QMAKE_CXXFLAGS += -march=native

    When I qmake, I see that -march option appears twice! It appears first with the value defined by qmake.conf and then is followed by the option with my value. I am guessing the second one overrides the first, but I'd like to know for sure.

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

    Default Re: Overriding flags in qmake.conf

    What's the point of modifying qmake.conf? Can't you put those statements in your project file?
    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. qmake.conf in MAC OS
    By anupamgee in forum Newbie
    Replies: 4
    Last Post: 27th October 2011, 23:36
  2. Qt Creator Problem selecting the correct mkspec/qmake.conf file
    By weaver4 in forum Qt Tools
    Replies: 1
    Last Post: 2nd December 2010, 13:37
  3. qt.conf (again) on windows
    By frares in forum Installation and Deployment
    Replies: 2
    Last Post: 6th July 2010, 18:50
  4. qt.conf
    By wirasto in forum Qt Programming
    Replies: 5
    Last Post: 25th December 2009, 14:45
  5. Qt.conf??? Maybe not...
    By Nefastious in forum Installation and Deployment
    Replies: 1
    Last Post: 7th November 2009, 22:32

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.