diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-11 18:17:46 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-14 18:17:11 +0200 |
commit | b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2 (patch) | |
tree | 8ac1cdf1e032517058698ee49b2ece5a299a51c8 /Tests/FindPackageModeMakefileTest | |
parent | 5bd48ac5348885e15ebb23ea825a1ea777985b97 (diff) | |
download | cmake-b0b4b4602fd5f8508d6fcbb9ea3236585e6368e2.tar.gz |
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 'Tests/FindPackageModeMakefileTest')
-rw-r--r-- | Tests/FindPackageModeMakefileTest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindPackageModeMakefileTest/CMakeLists.txt b/Tests/FindPackageModeMakefileTest/CMakeLists.txt index 5d1b376967..8e21c32b61 100644 --- a/Tests/FindPackageModeMakefileTest/CMakeLists.txt +++ b/Tests/FindPackageModeMakefileTest/CMakeLists.txt @@ -10,7 +10,7 @@ if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Makefile") ERROR_QUIET TIMEOUT 10) string(TOUPPER "${makeVersionOutput}" MAKE_VERSION_OUTPUT) - if("${MAKE_VERSION_OUTPUT}" MATCHES ".*GNU MAKE.*") + if("${MAKE_VERSION_OUTPUT}" MATCHES "GNU MAKE") # build a library which we can search during the test add_library(foo STATIC foo.cpp) |