QMAKE_COPY_DIR on Windows uses cp over xcopy if found on path.
-
Windows 10
mingw 5.12.2 32/64 bit.Building for Windows 10 I would expect QMAKE_COPY_DIR to use 'xcopy /s /q /y /i' as defined in mkspecs, which normally it does. However, if it finds 'cp' on the path (after installing msys2 for example) it uses 'cp -R -f' and subtely changes the result of the copy.
I don't really want to explicitly use xcopy, but is there some way to detect or force xcopy? Is this a qmake bug?
-
Windows 10
mingw 5.12.2 32/64 bit.Building for Windows 10 I would expect QMAKE_COPY_DIR to use 'xcopy /s /q /y /i' as defined in mkspecs, which normally it does. However, if it finds 'cp' on the path (after installing msys2 for example) it uses 'cp -R -f' and subtely changes the result of the copy.
I don't really want to explicitly use xcopy, but is there some way to detect or force xcopy? Is this a qmake bug?
Hi and welcome to devnet forum
Where did you find this variable?
There you will probably find the answer.
It is not part of https://doc.qt.io/qt-5/qmake-variable-reference.html -
Hi and welcome to devnet forum
Where did you find this variable?
There you will probably find the answer.
It is not part of https://doc.qt.io/qt-5/qmake-variable-reference.html -
Hi,
I think the simplest would be to remove MSys from your PATH environment variable.