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_minimum_required #9

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Fix cmake_minimum_required #9

merged 1 commit into from
Aug 16, 2024

Conversation

JonasVautherin
Copy link
Contributor

@JonasVautherin JonasVautherin commented Aug 15, 2024

Using add_library with sources for interface libraries has been added in CMake 3.19.

More specifically, this seems to fail with older CMake versions:

add_library(libevents_common INTERFACE
	event_type.h
)

Therefore it seems like cmake_minimum_required should be set to at least 3.19.

(Seen in mavlink/MAVSDK#2374 (comment))

Using add_library with sources for interface libraries has been added in CMake 3.19
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Nice find, thanks

@bkueng bkueng merged commit ce60064 into main Aug 16, 2024
1 check passed
@bkueng bkueng deleted the fix-cmake-minimum-required branch August 16, 2024 06:39
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