Wrong DESTDIR folder!
Unsolved
Installation and Deployment
-
Hello,
Whenever I run
qmake
I get a wrongDESTDIR
The generated folder of
DESTDIR
isChecker-windows-%SAVESTAMP%
While it suppose to be likeChecker-windows-2017-08-03_18-11-51.01
TARGET = Checker QT_PATH = $$(QTDIR) # Doesn't work! win32 { CONFIG(release, debug|release) { PWD_WIN = $${PWD} PWD_WIN ~= s,/,\\,g PREFIX = $$system('set SAVESTAMP=%mydate:/=-%_%TIME::=-% & set SAVESTAMP=%SAVESTAMP: =% & set SAVESTAMP=%SAVESTAMP:,=.% & echo %SAVESTAMP% ') DISTRO_NAME = $$TARGET-windows-$$PREFIX DESTDIR = $$PWD_WIN\\..\\distro\\$$DISTRO_NAME QT_PATH = "C:\\Qt\\Qt5.9.1\\5.9.1\\mingw53_32" RC_FILE = distro-windows/Checker.rc } CONFIG(debug, debug|release) { LIBS += -L$$PWD/distro-windows/mysql/ -llibmysqld INCLUDEPATH += $$PWD/distro-windows/mysql DEPENDPATH += $$PWD/distro-windows/mysql } }
NOTE: The following command works fine using
cmd
set SAVESTAMP=%mydate:/=-%_%TIME::=-% & set SAVESTAMP=%SAVESTAMP: =% & set SAVESTAMP=%SAVESTAMP:,=.% & echo %SAVESTAMP%
Thanks for help.