q-e-sirius currently fails in cmake configure when intel-oneapi-mkl is used, because MKL_INTERFACE, MKL_THREADING aren't propagated to q-e-sirius spack recipe.
The Fortran API actually doesn't require to find SIRIUS dependencies in cmake, as they are private dependencies (assuming shared library is used).
This PR changes cmake config files as follows:
sirius_cxxConfig.cmake the C++ library, using the hand-written config file as it was before
siriusConfig.cmake is now intended only for the Fortran API.
The target sirius::sirius is the F90 API, using sirius::sirius_cxx as private dependency.
The change should be backwards compatible, since the C++ API isn't used in any project.
q-e-sirius currently fails in cmake configure when
intel-oneapi-mkl
is used, becauseMKL_INTERFACE
,MKL_THREADING
aren't propagated to q-e-sirius spack recipe.The Fortran API actually doesn't require to find SIRIUS dependencies in cmake, as they are private dependencies (assuming shared library is used).
This PR changes cmake config files as follows:
sirius_cxxConfig.cmake
the C++ library, using the hand-written config file as it was beforesiriusConfig.cmake
is now intended only for the Fortran API.The target
sirius::sirius
is the F90 API, usingsirius::sirius_cxx
as private dependency.The change should be backwards compatible, since the C++ API isn't used in any project.