This PR makes FFTWWrappers respect the variable GEARSHIFFT_USE_STATIC_LIBS. With this PR applied, FindFFTWWrappers.cmake will prefer static MKL libraries if GEARSHIFFT_USE_STATIC_LIBS=ON, and shared MKL libraries otherwise. There is always a fallback to the unspecific library name, so even if GEARSHIFFT_USE_STATIC_LIBS is set but no preferred version of the library is found, FindFFTWWrappers.cmake should fallback to whatever MKL libraries are available.
This PR depends on 14e9dac from PR #137, so please review/merge PR #137 first :-)
This PR makes FFTWWrappers respect the variable
GEARSHIFFT_USE_STATIC_LIBS
. With this PR applied,FindFFTWWrappers.cmake
will prefer static MKL libraries ifGEARSHIFFT_USE_STATIC_LIBS=ON
, and shared MKL libraries otherwise. There is always a fallback to the unspecific library name, so even ifGEARSHIFFT_USE_STATIC_LIBS
is set but no preferred version of the library is found,FindFFTWWrappers.cmake
should fallback to whatever MKL libraries are available.This PR depends on 14e9dac from PR #137, so please review/merge PR #137 first :-)