diff --git a/MaterialLib/CMakeLists.txt b/MaterialLib/CMakeLists.txt index c870201ece9..a056c6aebc9 100644 --- a/MaterialLib/CMakeLists.txt +++ b/MaterialLib/CMakeLists.txt @@ -32,8 +32,13 @@ append_source_files(SOURCES PorousMedium/UnsaturatedProperty/CapillaryPressure) append_source_files( SOURCES PorousMedium/UnsaturatedProperty/RelativePermeability ) +if(CONDA_BUILD) + set(_static_on_conda STATIC) +endif() -ogs_add_library(MaterialLib GENERATE_EXPORT_HEADER ${SOURCES}) +ogs_add_library( + MaterialLib GENERATE_EXPORT_HEADER ${_static_on_conda} ${SOURCES} +) target_link_libraries( MaterialLib PUBLIC BaseLib Eigen3::Eigen MaterialLib_SolidModels diff --git a/MaterialLib/MPL/Utils/FormKelvinVector.h b/MaterialLib/MPL/Utils/FormKelvinVector.h index efb2dd2d222..5ade040ae7f 100644 --- a/MaterialLib/MPL/Utils/FormKelvinVector.h +++ b/MaterialLib/MPL/Utils/FormKelvinVector.h @@ -35,4 +35,10 @@ template MathLib::KelvinVector::KelvinVectorType formKelvinVector( MaterialPropertyLib::PropertyDataType const& values); +extern template MathLib::KelvinVector::KelvinVectorType<2> formKelvinVector<2>( + MaterialPropertyLib::PropertyDataType const& values); + +extern template MathLib::KelvinVector::KelvinVectorType<3> formKelvinVector<3>( + MaterialPropertyLib::PropertyDataType const& values); + } // namespace MaterialPropertyLib