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

Allow parent project to override options #1889

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

spacey-sooty
Copy link
Contributor

@spacey-sooty spacey-sooty commented Oct 29, 2024

I needed to depend on gtsam without boost, but when using fetch content I couldn't override the options relating to boost usage to disable it

I fixed this by setting polity CMP0077

@dellaert
Copy link
Member

Please provide a description. What prompted this and how did you solve it?

@spacey-sooty
Copy link
Contributor Author

Please provide a description. What prompted this and how did you solve it?

Done

@varunagrawal varunagrawal self-requested a review November 1, 2024 15:07
@@ -1,5 +1,11 @@
cmake_minimum_required(VERSION 3.0)

# allow parent project to override options
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick: Would your project be the parent project or the dependent project? Other than potentially updating this, your PR comment explains the need well. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be the dependent project but in this case is acting as the parent as it has to build gtsam (eg by fetchcontent)

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

Awesome LGTM

@varunagrawal varunagrawal merged commit 22a89ed into borglab:develop Nov 4, 2024
33 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.

3 participants