summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-14 18:12:33 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-14 18:57:03 (GMT)
commita5a6ac7033f107626e76eb09ccd86bf49ccdbecd (patch)
tree3fcbc3ee40c5959ed8ccfbb7c55a2aeceb86d33f /Modules/FindBLAS.cmake
parentd248401d12a4766dad7ddd69ee3f2947960f6f5f (diff)
downloadCMake-a5a6ac7033f107626e76eb09ccd86bf49ccdbecd.zip
CMake-a5a6ac7033f107626e76eb09ccd86bf49ccdbecd.tar.gz
CMake-a5a6ac7033f107626e76eb09ccd86bf49ccdbecd.tar.bz2
Find{BLAS,LAPACK}: Clarify name of internal argument for dependencies
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 84d7074..a61d71f 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -208,7 +208,7 @@ endif()
# TODO: move this stuff to a separate module
-macro(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _threadlibs _addlibdir _subdirs)
+macro(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _deps _addlibdir _subdirs)
# This macro checks for the existence of the combination of fortran libraries
# given by _list. If the combination is found, this macro checks (using the
# Check_Fortran_Function_Exists macro) whether can link against that library
@@ -242,8 +242,8 @@ macro(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _threadlibs _add
list(APPEND ${LIBRARIES} "${_library}")
else()
set(_combined_name ${_combined_name}_${_library})
- if(NOT "${_threadlibs}" STREQUAL "")
- set(_combined_name ${_combined_name}_threadlibs)
+ if(NOT "${_deps}" STREQUAL "")
+ set(_combined_name ${_combined_name}_deps)
endif()
if(_libraries_work)
find_library(${_prefix}_${_library}_LIBRARY
@@ -265,7 +265,7 @@ macro(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _threadlibs _add
endforeach()
if(_libraries_work)
# Test this combination of libraries.
- set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}} ${_threadlibs})
+ set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}} ${_deps})
if(CMAKE_Fortran_COMPILER_LOADED)
check_fortran_function_exists("${_name}" ${_prefix}${_combined_name}_WORKS)
else()
@@ -279,7 +279,7 @@ macro(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _threadlibs _add
if("${_list}" STREQUAL "")
set(${LIBRARIES} "${LIBRARIES}-PLACEHOLDER-FOR-EMPTY-LIBRARIES")
else()
- list(APPEND ${LIBRARIES} ${_threadlibs})
+ list(APPEND ${LIBRARIES} ${_deps})
endif()
else()
set(${LIBRARIES} FALSE)