Touch main.cpp when GIT_DESCRIBE is set

This commit is contained in:
woblight
2018-07-19 10:57:00 +02:00
parent e6d2ad912a
commit b14cd76b05
+2 -1
View File
@@ -1,4 +1,4 @@
QT += quick widgets concurrent quickcontrols2
QT += quick widgets concurrent quickcontrols2 network
CONFIG += c++1z
# The following define makes your compiler emit warnings if you use
@@ -47,6 +47,7 @@ isEmpty(GIT_DESCRIBE){
message("WARNING: empty git describe")
} else {
message("Git describe: $$GIT_DESCRIBE")
touch(main.cpp,.git/logs/HEAD)
}
DEFINES += GIT_DESCRIBE=\\\"$$GIT_DESCRIBE\\\"