diff --git a/modules/find/FindBLAS.cmake b/modules/find/FindBLAS.cmake index 9f74b07feb2b7cad89bd372c43639593fee150a9..95119ff9445f4d0e3848d720eec008709f86e27b 100644 --- a/modules/find/FindBLAS.cmake +++ b/modules/find/FindBLAS.cmake @@ -1354,11 +1354,17 @@ if(BLA_F95) set(BLAS_FOUND TRUE) set(BLAS_LIBRARIES "${BLAS95_LIBRARIES}") + if (NOT BLAS_LIBRARIES_DEP) + set(BLAS_LIBRARIES_DEP "${BLAS95_LIBRARIES}") + endif() else(BLA_F95) if(BLAS_LIBRARIES) set(BLAS_FOUND TRUE) + if (NOT BLAS_LIBRARIES_DEP) + set(BLAS_LIBRARIES_DEP "${BLAS_LIBRARIES}") + endif() else() set(BLAS_FOUND FALSE) endif()