Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nils Gladitz
CMake
Commits
98ef6632
Commit
98ef6632
authored
Apr 14, 2021
by
Brad King
💬
Browse files
Find{BLAS,LAPACK}: Generalize recognition of dependencies as link flags
parent
a57c4eef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Modules/FindBLAS.cmake
View file @
98ef6632
...
...
@@ -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
}
)
...
...
Modules/FindLAPACK.cmake
View file @
98ef6632
...
...
@@ -213,8 +213,8 @@ function(CHECK_LAPACK_LIBRARIES LIBRARIES _prefix _name _flags _list _deps _addl
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
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment