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
It is useful to pass previously determined configurations, say the blas libraries, to external project. In practice, this means finding of group of cached variables and transforming them into something the CMake program understand (-DSomething_LIBRARY=here).
include(CachedVariables)
cached_variables(
<OUTVAR> # name of the output variable
<PATTERN> # Pattern the variables should match, e.g. "BLAS_.*"
)
The output is a list BLAS_something_LIBRARY=this;BLAS_other_LIBRARY=that;BLAS_INCLUDE_DIR=here, that can be used to configure an external project.