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

Warn if user passes lib/cmake/Qt6 in CMAKE_PREFIX_PATH

XMLWordPrintable

    • 0e2b385c5b77549fb8a25651840821076fb6d93c

      Users on the forum.qt.io post issues like not being able to configure Qt applications using Qt6 because they end up passing  C:\Qt\6.3.1\msvc2019_64\lib\cmake\Qt6 which doesn't works as they would expect.

      One example building qt from sources - CMake Error at cmake/FindQt5.cmake

      It would be nice if CMake would take these paths into consideration, but that would probably never happen.

      But, we can have a look at the CMAKE_PREFIX_PATH and if it contains lib/cmake/Qt6 then issue a warning with the message to try without it.

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

            qtbuildsystem Qt Build System Team
            cadam Cristian Adam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes