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 option() override by FetchContent #813

Conversation

TheStormN
Copy link
Contributor

Fixes #812

@@ -24,6 +24,11 @@ include( GNUInstallDirs )

get_directory_property( has_parent PARENT_DIRECTORY )

if (POLICY CMP0077)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes it compatible with older CMake versions which do not support this policy.

@TheStormN
Copy link
Contributor Author

@HowardHinnant I know you are not promoting CMake support, but in general it does work and tbh I don't think that just copying over some files into a project is a nice way for 3rd party dependency management.

My ask is to consider merging this PR, so my(and other people) life can become a bit easier. :)

@HowardHinnant HowardHinnant merged commit 1ead671 into HowardHinnant:master May 14, 2024
@TheStormN TheStormN deleted the allow-option-override-by-FetchContent branch May 14, 2024 14:08
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.

Cannot override CMake options when fetching the library via FetchContent_Declare()
2 participants