Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96564

widgets/tools/echoplugin/echowindow: configure fails: Unknown CMake command "qt_add_executable"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.2.0 RC, 6.2.0 RC2
    • Widgets: Main Window
    • Android, Windows

    Description

      Qt6.2.0 RC MinGW binaries, open Creator and project widgets/tools/echoplugin/echowindow, configure fails:

      Running C:\Qt\620_beta4\Tools\CMake_64\bin\cmake.exe -S C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/widgets/tools/echoplugin/echowindow -B C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/widgets/tools/echoplugin/build-echowindow-Desktop_Qt_6_2_0_MinGW_64_bit-Debug in C:\Users\joaijala\RTA\qt5\Examples\Qt-6.2.0\widgets\tools\echoplugin\build-echowindow-Desktop_Qt_6_2_0_MinGW_64_bit-Debug.
      CMake Warning (dev) in CMakeLists.txt:
        No project() command is present.  The top-level CMakeLists.txt file must
        contain a literal, direct call to the project() command.  Add a line of
        code such as    project(ProjectName)  near the top of the file, but after cmake_minimum_required().  CMake is pretending there is a "project(Project)" command on the first line.
      This warning is for project developers.  Use -Wno-dev to suppress it.
      CMake Error at CMakeLists.txt:1 (qt_add_executable):
        Unknown CMake command "qt_add_executable".
      CMake Warning (dev) in CMakeLists.txt:
        No cmake_minimum_required command is present.  A line of code such as    cmake_minimum_required(VERSION 3.21)  should be added at the top of the file.  The version specified may be lower
        if you wish to support older CMake versions for this project.  For more
        information run "cmake --help-policy CMP0000".
      This warning is for project developers.  Use -Wno-dev to suppress it.-- Configuring incomplete, errors occurred!
      See also "C:/Users/joaijala/RTA/qt5/Examples/Qt-6.2.0/widgets/tools/echoplugin/build-echowindow-Desktop_Qt_6_2_0_MinGW_64_bit-Debug/CMakeFiles/CMakeOutput.log".
      CMake process exited with exit code 1.
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes