Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-7928

CMake wizard ignores selected kit

    XMLWordPrintable

Details

    Description

      For new CMake based projects the wizard ignores the selected kit and uses always the default kit. This could be seen in CMakeLists.txt.user.
      And it breaks compiling with msvc because the wrong varsbat call is used.

      bool CMakeProject::fromMap(const QVariantMap &map)
      {
          if (!Project::fromMap(map))
              return false;
      
          Kit *defaultKit = KitManager::instance()->defaultKit();
          if (!activeTarget() && defaultKit)
              addTarget(createTarget(defaultKit));
      

      createTarget triggers the wizard, but then the kit is already created.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dt Daniel Teske
            syntheticpp Peter Kümmel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes