-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cmake and version variable in build system #10109
Fix cmake and version variable in build system #10109
Conversation
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@Williangalvani Can you test it ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I can build with cmake again.
DEFINES -= APP_VERSION_STR=\"\\\"$$APP_VERSION_STR\\\"\" | ||
DEFINES += APP_VERSION_STR=\"\\\"$$CUSTOM_QGC_VERSION\\\"\" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not work with qmake
- build fails: main .pro/pri files still require GIT_VERSION
. This works:
DEFINES -= APP_VERSION_STR=\"\\\"$$APP_VERSION_STR\\\"\" | |
DEFINES += APP_VERSION_STR=\"\\\"$$CUSTOM_QGC_VERSION\\\"\" | |
DEFINES -= GIT_VERSION=\"\\\"$$GIT_VERSION\\\"\" | |
DEFINES += GIT_VERSION=\"\\\"$$CUSTOM_QGC_VERSION\\\"\" | |
DEFINES -= APP_VERSION_STR=\"\\\"$$APP_VERSION_STR\\\"\" | |
DEFINES += APP_VERSION_STR=\"\\\"$$CUSTOM_QGC_VERSION\\\"\" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@patrickelectric please fix ☝️
* custom-example: Update from GIT_VERSION to new APP_VERSION_STR Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com> * cmake: Fix usage of new variable APP_VERSION_STR over GIT_VERSION Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
* custom-example: Update from GIT_VERSION to new APP_VERSION_STR Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com> * cmake: Fix usage of new variable APP_VERSION_STR over GIT_VERSION Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
No description provided.