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. exclude specific files from using precompiled header with qmake
Forum Update on Monday, May 27th 2025

exclude specific files from using precompiled header with qmake

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.5k 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.
  • J Offline
    J Offline
    Justin Sayne
    wrote on 2 Dec 2015, 17:43 last edited by
    #1

    To resolve include conflicts, I need to do this. Is this somehow possible?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leonardo
      wrote on 2 Dec 2015, 19:23 last edited by
      #2

      Can't you do that in the .pro file?

      J 1 Reply Last reply 3 Dec 2015, 18:01
      0
      • L Leonardo
        2 Dec 2015, 19:23

        Can't you do that in the .pro file?

        J Offline
        J Offline
        Justin Sayne
        wrote on 3 Dec 2015, 18:01 last edited by
        #3

        @Leonardo
        I'd be completely fine with that however I don't know how. The Qt docs don't state anything about this.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Leonardo
          wrote on 4 Dec 2015, 10:59 last edited by
          #4

          You should give more details about what you want to do.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Justin Sayne
            wrote on 5 Dec 2015, 22:44 last edited by
            #5

            I want to incorporate precompiled headers into my project but I'm getting include conflicts in some of the cpp files (i.e. between QtOpenGL and glew.h). The easiest option appears to be disabling the use of the pch in these cpp files which can easily be done from within visual studio, it's just a compiler flag.
            This I'd like to do from within qmake so that I don't need to do it manually every time I rebuilt the solution.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Leonardo
              wrote on 6 Dec 2015, 01:30 last edited by
              #6

              Could you show your .pro file?

              1 Reply Last reply
              0

              1/6

              2 Dec 2015, 17:43

              • Login

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