Touch main.cpp when GIT_DESCRIBE is set
This commit is contained in:
@@ -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\\\"
|
||||
|
||||
Reference in New Issue
Block a user