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

Inconsistent behavior of qt_copy_or_install with relative DESTINATION

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.0 Beta3
    • Build System: CMake
    • All

    Description

      When qt_copy_or_install is used with a relative DESTINATION, the behavior is very different between prefix builds and non-prefix builds.

      Consider

      qt_copy_or_install(FILES foo.bar DESTINATION "./bla")
      

      In a prefix build, this will install to ${CMAKE_INSTALL_PREFIX}/bla and in a non-prefix build, this will install to ${CMAKE_CURRENT_BINARY_DIR}/bla.

      The non-prefix build case is wrong and should also install to ${CMAKE_INSTALL_PREFIX}/bla where CMAKE_INSTALL_PREFIX is qtbase's build directory.

      This little inconsistency is worked around all over the place by prefixing the DESTINATION with ${QT_INSTALL_DIR}/.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes