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

Use more compatible cmake command #768

Merged
merged 1 commit into from
Feb 7, 2023
Merged

Conversation

dotsam
Copy link
Contributor

@dotsam dotsam commented Jan 30, 2023

add_compile_definitions was added in cmake 3.12.4, but is just some syntactical sugar for add_definitions. Fall back to that command to keep compatibility with the defined minimum cmake version (3.2). This also maintains compatibility with Ubuntu 18.04, as it ships with cmake 3.10.2.

@robotastic
Copy link
Owner

CMAKE is a dark art - thanks for fixing this!

@robotastic robotastic merged commit 9138135 into robotastic:master Feb 7, 2023
@dotsam dotsam deleted the cmake-fix branch February 7, 2023 03:45
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

2 participants