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

qt-cmake-standalone-test produces build artifacts in build_dir

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 6.5
    • Build System: CMake
    • None
    • All

      The qt-cmake-standalone-test script is called from a shadow-build dir already, e.g.:

      ❯ pwd
      /Users/torarne/build/qt/6.x/tests/dialogs
      
      
      ❯ ../../qtbase/bin/qt-cmake-standalone-test ~/dev/qt/6.4/qtbase/tests/auto/widgets/dialogs/      
      

      So there's no need to add an extra build dir.

      And we're filling the PWD with build related files as well, so it's not consistent:

      ❯ ls
      CMakeCache.txt        CTestTestfile.cmake   Testing               build_dir             compile_commands.json
      CMakeFiles            DartConfiguration.tcl build.ninja           cmake_install.cmake
      

      This is also not what would happen with an equivialent qmake invocation, or a plain cmake invocation.

      And the behavior of the Xcode generator compared to the ninja generator in this scenario is also not consistent.

      It would be preferable if the qt-cmake-standalone-test helper behaved similar to the other ways you would shadow-build.

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

            qtbuildsystem Qt Build System Team
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes