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

Crash when adding file to target

    XMLWordPrintable

Details

    • 19a13932a45860dec80f410a886408c481114c64

    Description

      • create a dummy CMake project
      • change the add_executable line in the CMakeLists.txt to "add_executable()". Save and ignore the error, or don't save.
      • Add e.g. a C++ source files with the wizard. Click through with the defaults, including adding it to the project

      -> QtC crashes in CMakeBuildSystem::addSrcFiles,
      const std::string target_name = function->Arguments().front().Value;

      "function" is the add_executable call, but since that doesn't have any arguments, Arguments().front() leads to a crash.

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes