57a58,60
> # Activating shared libraries
> variant('shared', default=False, description='Enable shared libraries for Xyce')
>
Most test-cases ran correctly except about 70 of them (I did not investigate root causes in depth yet).> spack install xyce -mpi +pymi +shared
`+shared` was intended to be supported as a variant, but wasn't included in the variants list as an oversight. There are already checks against the `spec` to make the appropriate CMake changes when as user adds `+shared`.
```
if '+shared' in spec:
options.append('-DBUILD_SHARED_LIBS:BOOL=ON')
else:
options.append('-DBUILD_SHARED_LIBS:BOOL=OFF')
```
PR https://github.com/spack/spack/pull/28469 is now open which will integrate the change you suggested along with the option to specify Xyce 7.4.0. Thank you for sharing your experience with the spack installation and do please keep in mind that it is not currently fully supported and documented, as was mentioned previously.