Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-13600

Replace deprecated FetchContent_Populate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • QDS 4.6.0
    • QDS 4.6.0
    • CMake exporter
    • None
    • 3b0679737 (qds/dev), 5082e26b7 (qds/4.6), 013f3e903 (dev), a0ab2001e (6.8)
    • QDS Berlin - 2024 Week 37/38

    Description

      qmlcomponents.cmake use FetchContent to get the design studio components:

      FetchContent_Declare(
          ds
          GIT_TAG qds-4.5
          GIT_REPOSITORY https://code.qt.io/qt-labs/qtquickdesigner-components.git
      )
      
      FetchContent_GetProperties(ds)
      FetchContent_Populate(ds)
      

      Since CMake 3.30, FetchContent_Populate() with only one argument is deprecated, and will generate a configure time warning:

      CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message):
        Calling FetchContent_Populate(ds) is deprecated, call
        FetchContent_MakeAvailable(ds) instead.  Policy CMP0169 can be set to OLD
        to allow FetchContent_Populate(ds) to be called directly for now, but the
        ability to call it with declared details will be removed completely in a
        future version.
      

      Instead, the script should use FetchContent_MakeAvailable()

      Attachments

        Issue Links

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

          Activity

            People

              thohartm Thomas Hartmann
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes