Details

    • Technical task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Examples and Demos
    • None

    Description

      Trying to load https://doc.qt.io/qt-6/qtcore-bindableproperties-example.html in Qt Creator fails with following CMake errors:

      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.
      
      -- The C compiler identification is MSVC 19.34.31937.0
      -- The CXX compiler identification is MSVC 19.34.31937.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.34.31933/bin/HostX64/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.34.31933/bin/HostX64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Error at CMakeLists.txt:1 (qt_internal_add_example):
        Unknown CMake command "qt_internal_add_example".
      [...]
      

      This is because the linked project file corelib/bindableproperties/CMakeLists.txt is not a standalone CMakeLists.txt file, but just references two - for the build system - pretty independent examples, bindablesubscription and subscription.

      These should either be combined in one CMake example, or the documentation split up into two examples, too.

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes