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

Warning about advancedtext example on top-level configure

    XMLWordPrintable

Details

    Description

      CMake Warning (dev) at qtbase/cmake/QtPublicTargetHelpers.cmake:420 (message):
        It looks like this example project was added via add_subdirectory instead
        of via qt_internal_add_example.  This causes issues in certain build
        configurations.  Please change the code to use    qt_internal_add_example(advancedtext)  instead.
      Call Stack (most recent call first):
        /home/moheim/qt/build-6.9-base/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:644 (_qt_internal_warn_about_example_add_subdirectory)
        /home/moheim/qt/build-6.9-base/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:945 (qt6_add_executable)
        qtdeclarative/examples/quick/advancedtext/CMakeLists.txt:11 (qt_add_executable)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      My configure line is

      ../qt6/configure -developer-build -ccache -linker lld -make tests -make examples -make manual-tests -prefix /opt/qt-6.9-dev-qtdeclarative -submodules qtdeclarative -- -DQT_SHOW_EXTRA_IDE_SOURCES=0 -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DLLVM_INSTALL_DIR=/usr/lib/llvm-19 

      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
            moheim Moss Heim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes