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

Ignore CMakeUserPresets.json in VCS and provide templates in README.md

    XMLWordPrintable

Details

    • All
    • 745346cf3 (11.0), 91222c3a8 (11.0)

    Description

      According to CMake Docs, CMakeUserPresets.json is designed for developers to specify their own local build details. Therefore, it shouldn't be added to VCS.

      Besides, the current install/build instructions of qt-creator is running a cmake command with a series of arguments in CLI, which is quite troublesome. See: 

      Therefore, I suggest that qt-creator:

      • Add CMakeUserPresets.json in .gitignore.
      • Provide templates of CMakeUserPresets.json in README.md.

      so that developers may be able to build qt-creator locally with the help of some IDEs, such as VSCode, CLion...etc, out-of-the-box. And I believe this method of building qt-creator project is more convenient.

      For example, the following screenshot is my demonstration of using CMakeUserPresets.json with VSCode (CMake Tools) to build the qt-creator.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-29137
        # Subject Branch Project Status CR V

        Activity

          People

            cadam Cristian Adam
            hwhsu1231 Haowei Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes