summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-14 18:11:39 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-14 18:57:03 (GMT)
commitd248401d12a4766dad7ddd69ee3f2947960f6f5f (patch)
tree599278eabb877e5f22ca5a45be0ba390ea9c446f /Modules/FindBLAS.cmake
parente4649d1d159de9c1a6f4833d6f9a5a44e5c4781b (diff)
downloadCMake-d248401d12a4766dad7ddd69ee3f2947960f6f5f.zip
CMake-d248401d12a4766dad7ddd69ee3f2947960f6f5f.tar.gz
CMake-d248401d12a4766dad7ddd69ee3f2947960f6f5f.tar.bz2
Find{BLAS,LAPACK}: Simplify appending to list of libraries
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index fafbc0f..84d7074 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -239,7 +239,7 @@ macro(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _threadlibs _add
foreach(_library ${_list})
if(_library MATCHES "^-Wl,--(start|end)-group$")
# Respect linker flags like --start/end-group (required by MKL)
- set(${LIBRARIES} ${${LIBRARIES}} "${_library}")
+ list(APPEND ${LIBRARIES} "${_library}")
else()
set(_combined_name ${_combined_name}_${_library})
if(NOT "${_threadlibs}" STREQUAL "")
@@ -253,7 +253,7 @@ macro(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _threadlibs _add
PATH_SUFFIXES ${_subdirs}
)
mark_as_advanced(${_prefix}_${_library}_LIBRARY)
- set(${LIBRARIES} ${${LIBRARIES}} ${${_prefix}_${_library}_LIBRARY})
+ list(APPEND ${LIBRARIES} ${${_prefix}_${_library}_LIBRARY})
set(_libraries_work ${${_prefix}_${_library}_LIBRARY})
endif()
endif()
@@ -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()
- set(${LIBRARIES} ${${LIBRARIES}} ${_threadlibs})
+ list(APPEND ${LIBRARIES} ${_threadlibs})
endif()
else()
set(${LIBRARIES} FALSE)