You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I was looking at this. Not understanding why you can't override UNITS_INSTALL. You will have to set it as a cache level variable but that should override the default options.
set(UNITS_INSTALL ONCACHEINTERNAL"")
And I will be looking into a spack package in the near future, should get it to a 1.0 release within the next year.
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, ascmake_dependent_option
will override itunless
PROJECT_NAME
isUNITS
. Currently, I am overridingPROJECT_NAME
, which is less thandesirable.
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?
The text was updated successfully, but these errors were encountered: