Skip to content
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

Merged
merged 2 commits into from
Jan 11, 2022

Conversation

patrickelectric
Copy link
Member

No description provided.

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@patrickelectric
Copy link
Member Author

@Williangalvani Can you test it ?

Copy link
Contributor

@Williangalvani Williangalvani left a 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.

@mrpollo mrpollo merged commit 5a45c05 into mavlink:master Jan 11, 2022
Comment on lines +20 to +21
DEFINES -= APP_VERSION_STR=\"\\\"$$APP_VERSION_STR\\\"\"
DEFINES += APP_VERSION_STR=\"\\\"$$CUSTOM_QGC_VERSION\\\"\"
Copy link
Contributor

@akontsevich akontsevich Jun 27, 2022

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:

Suggested change
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\\\"\"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patrickelectric please fix ☝️

patrickelectric added a commit to patrickelectric/qgroundcontrol that referenced this pull request Jan 11, 2023
* 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>
patrickelectric added a commit that referenced this pull request Jan 13, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants