Fixed bug on vendor FFTW discovery

This commit is contained in:
Daniele Cesarini 2020-10-23 15:33:18 +02:00
parent 3164ea0f1a
commit 0f107f63d5
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
if(BLAS_FOUND OR LAPACK_FOUND)
foreach(_lib ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES})
# Trasform spaces in semicolons
string(REPLACE " " ";" _blas_libs "${BLAS_LIBRARIES}")
string(REPLACE " " ";" _lapack_libs "${LAPACK_LIBRARIES}")
foreach(_lib ${_blas_libs} ${_lapack_libs})
# Check only libraries and directories
set(_search_path)
if(EXISTS "${_lib}")