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

Question: How to install units as a vendored library #341

Open
thorstenhater opened this issue Sep 5, 2024 · 0 comments
Open

Question: How to install units as a vendored library #341

thorstenhater opened this issue Sep 5, 2024 · 0 comments

Comments

@thorstenhater
Copy link

Hi,

I am using units as a git submodule (packaged versions seem not to be widely available, even for Spack).
As units are part of the public API, units needs to be installed along the main project in this setting.
However, I cannot set UNITS_INSTALL=ON in CMake, as cmake_dependent_option will override it
unless PROJECT_NAME is UNITS. Currently, I am overriding PROJECT_NAME, which is less than
desirable.

Could you relax this restriction by checking whether an installation is requested explicitly or, if I am misusing
CMake here, provide a description on what to do instead?

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

No branches or pull requests

1 participant