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

conanfile.py: Accept QTDIR in addition to QT_PATH

    XMLWordPrintable

    Details

    • Sprint:
      Qt Installer Sprint 26, Qt Installer Sprint 27

      Description

      The conanfile.py for qt3d, qtimageformats, qtnetworkauth depend on an environment variable QT_PATH:

          def _get_cmake_prefix_path(self):
              # 'QT_PATH' provided as env variable in profile file which is part of the Qt essential binary
              # package(s). Installed under .conan/profiles
              cmake_prefix_path = os.environ.get("QT_PATH")
              if not cmake_prefix_path:
                  raise QtConanError("'QT_PATH' not defined! The 'QT_PATH' needs to point to Qt installation directory.")
              print(f"CMAKE_PREFIX_PATH for '{self.name}/{self.version}' build is: {cmake_prefix_path}"
      

      There's an established environment variable for this though, QTDIR. This environment variable is also set by Qt Creator by default. So the Conan recipes should accept this environment varialbe, in additon to (or as a complete replacement of) QT_PATH

        Attachments

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

          Activity

            People

            Assignee:
            iknd Iikka Eklund
            Reporter:
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: