aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2010-09-30 17:48:12 +0000
committerColin Guthrie <cguthrie@mandriva.org>2010-09-30 17:48:12 +0000
commit2640809ba84813a2be964926ee7c6cd15e6be7ad (patch)
tree8c9d5fc4e9821ff65a0dcfec69fd75b9208f8a76 /modules
parent30e0f00e3774a76b4f46f321547fc8c8a4ff0736 (diff)
downloadextra-cmake-modules-2640809ba84813a2be964926ee7c6cd15e6be7ad.tar.gz
extra-cmake-modules-2640809ba84813a2be964926ee7c6cd15e6be7ad.tar.bz2
Make the PulseAudio version check regexp tolerant to extra fluff at the end of the major.minor.micro
svn path=/trunk/KDE/kdelibs/; revision=1181320
Diffstat (limited to 'modules')
-rw-r--r--modules/FindPulseAudio.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/FindPulseAudio.cmake b/modules/FindPulseAudio.cmake
index 6a84ba7c..35bcbc2f 100644
--- a/modules/FindPulseAudio.cmake
+++ b/modules/FindPulseAudio.cmake
@@ -57,7 +57,7 @@ if (PULSEAUDIO_INCLUDE_DIR AND NOT PULSEAUDIO_VERSION)
file(STRINGS "${PULSEAUDIO_INCLUDE_DIR}/pulse/version.h" pulse_version_h
REGEX ".*pa_get_headers_version\\(\\).*"
)
- string(REGEX REPLACE ".*pa_get_headers_version\\(\\)\ \\(\"([0-9]+\\.[0-9]+\\.[0-9]+)\"\\).*" "\\1"
+ string(REGEX REPLACE ".*pa_get_headers_version\\(\\)\ \\(\"([0-9]+\\.[0-9]+\\.[0-9]+)[^\"]*\"\\).*" "\\1"
_PULSEAUDIO_VERSION "${pulse_version_h}")
set(PULSEAUDIO_VERSION "${_PULSEAUDIO_VERSION}" CACHE STRING "Version number of PulseAudio" FORCE)