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 - run CMake
Forum Update on Monday, May 27th 2025

QtCreator - run CMake

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 1.7k 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.
  • martinv_M Offline
    martinv_M Offline
    martinv_
    wrote on last edited by
    #1

    Hello,

    recent QtCreator versions (4.0.82) don't support user-defined CMake parameters when opening a new project. I used to click on 'Configure project' and then QtCreator would display a window with a title 'Run CMake', where I could supply extra CMake arguments. The recent behaviour is that QtCreator runs CMake directly (without asking me to provide extra parameters) and sets default values as it sees fit. The 'run cmake' dialog disappeared, which is really annoying - I used to copy and paste a series of CMake variables with predefined values directly in this dialog. Is there any plan to bring this back? Thank you.

    Best regards,

    Martin

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

      HI and welcome to devnet,

      Go to the Project panel, under build you can edit your variables.

      For more information, take a look at "Setting Up a CMake Project" in QtCreator's documentation.

      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
      1
      • martinv_M Offline
        martinv_M Offline
        martinv_
        wrote on last edited by
        #3

        Hi,

        yes, I'm aware of that, but this is really tedious (imagine a large number of cmake variables where you have to set paths manually). What was wrong with enabling the user to paste a set of variables and their values in one shot? Does this mean that this 'workflow option' is gone forever? I would really prefer to define some variable values at first cmake run instead of having to change them manually after the initial cmake run.

        1 Reply Last reply
        0
        • hungerH Offline
          hungerH Offline
          hunger
          wrote on last edited by
          #4

          You can add common default values to your kits in Tools>Options>Build & Run>Kits. Those apply to all projects using that kit.

          Project specific options can indeed only be set via the Projects page now. I hope that many users can actually make cmake pick sensible default values for most settings. That reduces your need to have many settings and helps all your project's users as well.

          1 Reply Last reply
          1
          • martinv_M Offline
            martinv_M Offline
            martinv_
            wrote on last edited by
            #5

            I really regret that you made this choice. It is difficult to preset 'reasonable default values' when those values are for example numerous paths to third-party libraries on machines where I am not administrator and I have no control over the naming and location of these libraries. In addition, the new behavior of Qtcreator means that the CMake cache first gets populated by (wrong) default values before the user gets a shot at touching it. This is not really how CMake behaves on command line (where you can use -D...) and going further away from that behavior is a strange decision. The 'run cmake' dialog certainly would not interfere with the new strategy of QtCreator (you can just choose to skip the 'Run CMake' part, right?), and I don't really understand the reasoning behind the removal of this (perfectly functioning) feature. In my opinion, this is hardly an improvement, but maybe I just fail to see the reasoning ...

            1 Reply Last reply
            1

            • Login

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