From: Gunnar Beutner Date: Mon, 16 Mar 2015 12:37:11 +0000 (+0100) Subject: Ignore file name extension in 'flex --version' output X-Git-Tag: v2.4.0~820 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3e83ae163038adb2bce9af9b243d9ca98f5c398;p=icinga2 Ignore file name extension in 'flex --version' output refs #8750 --- diff --git a/third-party/cmake/FindFLEX.cmake b/third-party/cmake/FindFLEX.cmake index cd54832c3..bc931d46a 100644 --- a/third-party/cmake/FindFLEX.cmake +++ b/third-party/cmake/FindFLEX.cmake @@ -113,7 +113,7 @@ IF(FLEX_EXECUTABLE) MESSAGE("Command \"${FLEX_EXECUTABLE} --version\" failed with output:\n${FLEX_version_output}\n${FLEX_version_error}\nFLEX_VERSION will not be available") ENDIF() ELSE() - STRING(REGEX REPLACE "^flex (.*)$" "\\1" + STRING(REGEX REPLACE "^flex[^ ]* (.*)$" "\\1" FLEX_VERSION "${FLEX_version_output}") ENDIF()