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 old CMake versions without IPO support #20

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

mjacobse
Copy link
Contributor

@mjacobse mjacobse commented Nov 7, 2024

Both the policy CMP0069 and the function check_ipo_supported were only added in CMake version 3.9. Not setting the policy for versions < 3.9 would add support for such versions. Additionally, setting the default for USE_LTO to OFF in such cases makes it work without the user having to disable it manually.

@glebbelov glebbelov merged commit 6fc7cc2 into ampl:master Nov 10, 2024
13 of 14 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