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

qt5_make_output_file fails with build directories as symlinks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.5.0
    • Build System: CMake
    • None

    Description

      The qt5_make_output_file macro in Qt5CoreMacros.cmake does not generate the proper relative path when the build directory is a symlink. CMake currently does not resolve the build directory itself as a symlink, but instead uses an internal translation map to keep the directory it was reached as the "real path" for the build tree. This causes relative paths from the build directory into the source tree to be invalid (since the ../ traversal is off in the weeds when it is actually followed).

      In general, relative paths between the source and build directories are not possible. Is there a reason that full, absolute paths are not used rather than relative paths?

      Attachments

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

        Activity

          People

            krf Kevin Funk
            ben.boeckel Ben Boeckel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes