Skip to content

Use more compatible cmake command#768

Merged
robotastic merged 1 commit intoTrunkRecorder:masterfrom
dotsam:cmake-fix
Feb 7, 2023
Merged

Use more compatible cmake command#768
robotastic merged 1 commit intoTrunkRecorder:masterfrom
dotsam:cmake-fix

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
Collaborator

CMAKE is a dark art - thanks for fixing this!

@robotastic robotastic merged commit 9138135 into TrunkRecorder: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.

2 participants