diff options
author | Brad King <brad.king@kitware.com> | 2021-04-14 18:18:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-14 18:57:03 (GMT) |
commit | 98ef6632d9f7de15472246ccde76a749be0d37ca (patch) | |
tree | aa9cfc2327a954e5c30c5238e6da496310f67e00 /Modules/FindBLAS.cmake | |
parent | a57c4eef76d623078fe7ff718951a71da000a499 (diff) | |
download | CMake-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.cmake | 4 |
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}) |