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. Qt Creator: Ordering of debug/release builds?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: Ordering of debug/release builds?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 3 Posters 222 Views 2 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.
  • R Offline
    R Offline
    Robert Hairgrove
    wrote on last edited by Robert Hairgrove
    #1

    In my project, if I select multiple configurations for a given kit, is there a way to enforce the order in which they will be built?

    I noticed that in the project properties, that the build configuration can be renamed, or if selecting a new configuration one is prompted to give it a name.

    Is this the way? Does Qt Creator build the project for multiple configurations in alphabeical order of the configuration name?

    I would like to have "release" always built before "debug", if possible.

    R 1 Reply Last reply
    0
    • R Robert Hairgrove

      In my project, if I select multiple configurations for a given kit, is there a way to enforce the order in which they will be built?

      I noticed that in the project properties, that the build configuration can be renamed, or if selecting a new configuration one is prompted to give it a name.

      Is this the way? Does Qt Creator build the project for multiple configurations in alphabeical order of the configuration name?

      I would like to have "release" always built before "debug", if possible.

      R Offline
      R Offline
      Robert Hairgrove
      wrote last edited by Robert Hairgrove
      #2

      @Robert-Hairgrove said in Qt Creator: Ordering of debug/release builds?:

      Does Qt Creator build the project for multiple configurations in alphabetical order of the configuration name?

      After some testing, the answer is "apparently not".

      Other ideas?

      cristian-adamC 1 Reply Last reply
      0
      • R Robert Hairgrove

        @Robert-Hairgrove said in Qt Creator: Ordering of debug/release builds?:

        Does Qt Creator build the project for multiple configurations in alphabetical order of the configuration name?

        After some testing, the answer is "apparently not".

        Other ideas?

        cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote last edited by
        #3

        @Robert-Hairgrove I just tested it, and renaming Debug to ZDebug didn't help.

        But removing it and adding a new Debug version named ZDebug worked.

        12:21:30: Running steps for project untitled05...
        12:21:30: Starting: "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake" --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-Release --target all
        ninja: no work to do.
        12:21:30: The command "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-Release --target all" finished successfully.
        12:21:30: Starting: "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake" --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-ZDebug --target all
        ninja: no work to do.
        12:21:30: The command "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-ZDebug --target all" finished successfully.
        12:21:30: Elapsed time: 00:00.
        
        R 1 Reply Last reply
        2
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote last edited by
          #4

          Another option is to build the project itself as I present in https://cristianadam.eu/20191012/building-multiple-configurations-with-cmake-in-one-go/

          You can then programmatically decide which version comes first.

          1 Reply Last reply
          2
          • cristian-adamC cristian-adam

            @Robert-Hairgrove I just tested it, and renaming Debug to ZDebug didn't help.

            But removing it and adding a new Debug version named ZDebug worked.

            12:21:30: Running steps for project untitled05...
            12:21:30: Starting: "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake" --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-Release --target all
            ninja: no work to do.
            12:21:30: The command "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-Release --target all" finished successfully.
            12:21:30: Starting: "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake" --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-ZDebug --target all
            ninja: no work to do.
            12:21:30: The command "/opt/homebrew/Cellar/cmake/4.2.1/bin/cmake --build /Users/cristian/Projects/C++/untitled05/build/Qt_6_10_0_for_macOS-ZDebug --target all" finished successfully.
            12:21:30: Elapsed time: 00:00.
            
            R Offline
            R Offline
            Robert Hairgrove
            wrote last edited by
            #5

            @cristian-adam Thank you!

            1 Reply Last reply
            1
            • R Robert Hairgrove has marked this topic as solved
            • KH-219DesignK Offline
              KH-219DesignK Offline
              KH-219Design
              wrote last edited by
              #6

              @cristian-adam regarding your blog post about many project configs in CMake, am I understanding correctly that the key insight (or the key cmake feature that unlocks the possibility) is to use ExternalProject ?

              I just want to confirm my understanding in case I attempt to leverage your advice in the future. It looks quite useful.

              (hopefully I am not "hijacking" this thread. pretty sure I am staying close enough to the topic at hand)

              www.219design.com
              Software | Electrical | Mechanical | Product Design

              cristian-adamC 1 Reply Last reply
              0
              • KH-219DesignK KH-219Design

                @cristian-adam regarding your blog post about many project configs in CMake, am I understanding correctly that the key insight (or the key cmake feature that unlocks the possibility) is to use ExternalProject ?

                I just want to confirm my understanding in case I attempt to leverage your advice in the future. It looks quite useful.

                (hopefully I am not "hijacking" this thread. pretty sure I am staying close enough to the topic at hand)

                cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote last edited by
                #7

                @KH-219Design said in Qt Creator: Ordering of debug/release builds?:

                @cristian-adam am I understanding correctly that the key insight (or the key cmake feature that unlocks the possibility) is to use ExternalProject ?

                Only if you need the Visual Studio CMake generator. If you are using Ninja, then add_subdirectory is enough.

                1 Reply Last reply
                2

                • Login

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