aboutsummaryrefslogtreecommitdiff
path: root/find-modules/FindEGL.cmake
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2015-03-09 18:18:16 +0000
committerAlex Merry <alex.merry@kde.org>2015-03-09 18:18:16 +0000
commit4f81d1a92e4ccc2ce7b33d2860397a526b1a4d2f (patch)
treee14f2e5b4024264e388f0be61bb2e71871d8a0fb /find-modules/FindEGL.cmake
parentbc27ee561756cb6e1e51e3589addab8656fd4b03 (diff)
downloadextra-cmake-modules-4f81d1a92e4ccc2ce7b33d2860397a526b1a4d2f.tar.gz
extra-cmake-modules-4f81d1a92e4ccc2ce7b33d2860397a526b1a4d2f.tar.bz2
Fix tab characters in regexes.
There is no "\t" in CMake's regular expression syntax; we need to make the character be interpreted when CMake parses it as a string.
Diffstat (limited to 'find-modules/FindEGL.cmake')
-rw-r--r--find-modules/FindEGL.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/find-modules/FindEGL.cmake b/find-modules/FindEGL.cmake
index b96f3b0f..72474371 100644
--- a/find-modules/FindEGL.cmake
+++ b/find-modules/FindEGL.cmake
@@ -98,14 +98,14 @@ if(EGL_INCLUDE_DIR)
# finding all these defines and selecting the highest numbered.
file(READ "${EGL_INCLUDE_DIR}/egl.h" _EGL_header_contents)
string(REGEX MATCHALL
- "[ \\t]EGL_VERSION_[0-9_]+"
+ "[ \t]EGL_VERSION_[0-9_]+"
_EGL_version_lines
"${_EGL_header_contents}"
)
unset(_EGL_header_contents)
foreach(_EGL_version_line ${_EGL_version_lines})
string(REGEX REPLACE
- "[ \\t]EGL_VERSION_([0-9_]+)"
+ "[ \t]EGL_VERSION_([0-9_]+)"
"\\1"
_version_candidate
"${_EGL_version_line}"