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

osgEarth-config: Set OSG include on target instead of global #2692

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

emminizer
Copy link
Contributor

The find_package(osgEarth) sets the global include directories field for OSG, polluting the global namespace. This change isolates the include directories for OSG to only be added to targets where osgEarth::osgEarth is linked against. Minor clean-up.

This syntax requires CMake 3.11, but the minimum CMake version for building osgEarth is 3.20, so this should be safe from a syntax perspective.

@gwaldron gwaldron merged commit 4e9f3cc into gwaldron:master Jan 24, 2025
3 checks passed
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