Wrong DESTDIR folder!



  • Hello,

    Whenever I run qmake I get a wrong DESTDIR

    The generated folder of DESTDIR is Checker-windows-%SAVESTAMP% While it suppose to be like Checker-windows-2017-08-03_18-11-51.01

    Checker.pro

    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%
    

    alt text

    Thanks for help.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.