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

Add support for compiling single file when using CMake project

    XMLWordPrintable

Details

    Description

      When using qmake based projects it is possible to build only single file from project.

      This is a very useful feature and it would be great if that support would be extended to CMake based projects.

      For example, if using Ninja generator, the build for single file should invoke `ninja CMakeFiles/project.dir/path/to/source/file.cpp.o`.

      When using Clang Code model, clang backend actually performs something very similar and displays compile issues in real time, so adding this option to actually perform compilation should not be a difficult to implement. Am I wrong?

      Attachments

        Issue Links

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

          Activity

            People

              orgads Orgad Shaneh
              dodoent Nenad Miksa
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes