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. QtCreator sessions and build options

QtCreator sessions and build options

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 622 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.
  • L Offline
    L Offline
    Luca Ottaviano
    wrote on last edited by
    #1

    I'm using Qt Creator sessions to manage different projects. However it seems that build options are not saved in session information, instead they are a global setting.
    I have 2 projects that link two libraries, libA and libB, that must be compiled with different CONFIG options. What I see is that:

    • CONFIG options are not changed when switching between sessions
    • build directories for libraries are not changed when switching between sessions.

    Is that the intended behaviour? Is there a workaround that doesn't require to manually edit build options each time?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      CONFIG options are saved in .pro.user file and that is single per project.

      So if you share single project between 2 sessions, the CONFIG will be shared, too. A workaround would be to keep 2 copies of the project (a PITA, I know).

      Please check Qt bugtracker, maybe this issue has been raised there already. If not, feel free to report it.

      (Z(:^

      1 Reply Last reply
      2
      • L Offline
        L Offline
        Luca Ottaviano
        wrote on last edited by
        #3

        It seem that there is an open issue; https://bugreports.qt.io/browse/QTCREATORBUG-16487.
        Please upvote if you are affected.

        1 Reply Last reply
        1
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Voted.

          One thought that this bug description suggests: perhaps there is an easier workaround. Add another (dummy) session with no open projects. Then when you want to switch your sessions do this:

          • session 1
          • dummy
          • session 2

          That should trigger project settings to be refreshed.

          (Z(:^

          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