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

New CMake projects: cmake_minimum_required() must come before project()

    XMLWordPrintable

Details

    Description

      CMake recomments to "Call the cmake_minimum_required() command at the beginning of the top-level CMakeLists.txt file even before calling the project() command. It is important to establish version and policy settings before invoking other commands whose behavior they may affect." (https://cmake.org/cmake/help/v3.6/command/cmake_minimum_required.html)

      CMake projects created in Qt Creator start with project() command. This must be correct to call project() after cmake_minimum_required().

      In addition, the minimum version should be bumped to 3.0, given that this version is required by Creator.

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            dg0yt Kai Pastor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes