summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-14 18:18:25 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-14 18:57:03 (GMT)
commit98ef6632d9f7de15472246ccde76a749be0d37ca (patch)
treeaa9cfc2327a954e5c30c5238e6da496310f67e00 /Modules/FindBLAS.cmake
parenta57c4eef76d623078fe7ff718951a71da000a499 (diff)
downloadCMake-98ef6632d9f7de15472246ccde76a749be0d37ca.zip
CMake-98ef6632d9f7de15472246ccde76a749be0d37ca.tar.gz
CMake-98ef6632d9f7de15472246ccde76a749be0d37ca.tar.bz2
Find{BLAS,LAPACK}: Generalize recognition of dependencies as link flags
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 0ad5d8c..61e92c9 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -231,8 +231,8 @@ function(CHECK_BLAS_LIBRARIES LIBRARIES _prefix _name _flags _list _deps _addlib
list(APPEND _extaddlibdir "${CMAKE_C_IMPLICIT_LINK_DIRECTORIES}")
foreach(_library ${_list})
- if(_library MATCHES "^-Wl,--(start|end)-group$")
- # Respect linker flags like --start/end-group (required by MKL)
+ if(_library MATCHES "^-")
+ # Respect linker flags as-is (required by MKL)
list(APPEND _libraries "${_library}")
else()
set(_combined_name ${_combined_name}_${_library})