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

QMake uses wrong xcopy command on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.13.0
    • Build tools: qmake
    • None
    • Windows 10
      Qt 5.13
    • Windows

    Description

      I've a small home project in Qt which I'd like to use on both Windows and linux.

      It has a config folder, which stores some json config files, which I'd like to copy where the binaries are during build.

      The following works flawlessly on linux:

       

      # based on: https://dragly.org/2013/11/05/copying-data-files-to-the-build-directory-when-working-with-qmake/
      copyconfig.commands = $(COPY_DIR) $$PWD/res/config $$OUT_PWD
      first.depends = $(first) copyconfig
      export(first.depends)
      export(copyconfig.commands)
      QMAKE_EXTRA_TARGETS += first copyconfig
      

      But fails on Windows with the following error:

      xcopy /s /q /y /i D:/Dev/qWindowApp/app/res/config D:/Dev/builds/qWindowApp/qPackVideo-debug/app Invalid number of parameters
      

       

      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
            david.kiss David Kiss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes