Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. retrieve full comiler options in qmake

retrieve full comiler options in qmake

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • X Offline
    X Offline
    xylosper
    wrote on last edited by
    #1

    I want to retrive full compiler option in qmake including all -I options and -D options.
    I've tried $$join(DEFINES, " -D") $$join(INCLUDEPATH, " -I") but it doesn't contain Qt module informations such as -DQT_CORE_LIB nor -IC:\Qt\5.8\msvc2015_64\include\QtCore

    How can I get full compiler flags/options in qmake?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Out of curiosity, what is your use case for that information ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xylosper
        wrote on last edited by xylosper
        #3

        I need the information to run clang-tidy because it requires compile options to analyze source code.
        For instance, without include path for QtCore headers, it prints some kind of erros similar with 'header file not found' whenever it sees #include <QVector>.
        Although I can write it one by one, I'd like to make general method to run clang-tidy for my project.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should check the qmake variable reference page. It contains all the variables that you likely need.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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