From e3e83ae163038adb2bce9af9b243d9ca98f5c398 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 16 Mar 2015 13:37:11 +0100 Subject: [PATCH] Ignore file name extension in 'flex --version' output refs #8750 --- third-party/cmake/FindFLEX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.40.0