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

Please add cmake variables allowing the user to specify if to require an external package or not #1152

Closed
yurivict opened this issue May 31, 2019 · 1 comment

Comments

@yurivict
Copy link

For each external dependency please add a tri-state variable USE_{depencency-name}={ON/OFF/AUTO}.

In the context of the package build it should be possible to require a dependency to be present or not to be used, for example:

  • USE_CMINPACK=ON would require cminpack and would fail if it isn't present
  • USE_CMINPACK=OFF would ignore cminpack even if it is present
  • USE_CMINPACK=AUTO would use cminpack when it is present (current behavior)

Please see an example here: https://cmake.org/pipermail/cmake/2016-October/064342.html

@jschueller
Copy link
Member

jschueller commented Mar 6, 2024

you can use CMAKE_REQUIRE_FIND_PACKAGE_CMinpack=ON if you want it to fail when not present (and USE_CMINPACK=ON/OFF for the other two cases)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants