diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-11 16:17:46 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-14 16:17:11 (GMT) |
commit | b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2 (patch) | |
tree | 8ac1cdf1e032517058698ee49b2ece5a299a51c8 /Modules/FindLAPACK.cmake | |
parent | 5bd48ac5348885e15ebb23ea825a1ea777985b97 (diff) | |
download | CMake-b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2.zip CMake-b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2.tar.gz CMake-b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2.tar.bz2 |
Remove .* expressions from beginning and end of MATCHES regexs
All these expressions work the same:
"foo"
".*foo.*"
"^.*foo.*$"
This assumes that the "Intel*" expressions were meant to be "Intel.*".
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r-- | Modules/FindLAPACK.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake index 33f4f0c..87938c8 100644 --- a/Modules/FindLAPACK.cmake +++ b/Modules/FindLAPACK.cmake @@ -183,7 +183,7 @@ endif () #acml lapack - if (BLA_VENDOR MATCHES "ACML.*" OR BLA_VENDOR STREQUAL "All") + if (BLA_VENDOR MATCHES "ACML" OR BLA_VENDOR STREQUAL "All") if (BLAS_LIBRARIES MATCHES ".+acml.+") set (LAPACK_LIBRARIES ${BLAS_LIBRARIES}) endif () @@ -233,7 +233,7 @@ if (BLA_VENDOR STREQUAL "Generic" OR endif () endif () #intel lapack -if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All") +if (BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All") if (NOT WIN32) set(LM "-lm") endif () |