diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-01-23 22:40:17 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-01-23 22:40:17 (GMT) |
commit | 0b2e81c63ce6ca9dcf9d775d3f5cd22749e8c134 (patch) | |
tree | 61d23c62b13f8823468708028eb7c827f0995f7c | |
parent | 2cf5df3e58842a3e0fdeb919414f32e53dbe0aec (diff) | |
download | CMake-0b2e81c63ce6ca9dcf9d775d3f5cd22749e8c134.zip CMake-0b2e81c63ce6ca9dcf9d775d3f5cd22749e8c134.tar.gz CMake-0b2e81c63ce6ca9dcf9d775d3f5cd22749e8c134.tar.bz2 |
FindFLEX: fix version parsing when the executable is quoted
-rw-r--r-- | Modules/FindFLEX.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindFLEX.cmake b/Modules/FindFLEX.cmake index 6309bc9..586f77a 100644 --- a/Modules/FindFLEX.cmake +++ b/Modules/FindFLEX.cmake @@ -94,7 +94,7 @@ IF(FLEX_EXECUTABLE) # older versions of flex printed "/full/path/to/executable version X.Y" # newer versions use "basename(executable) X.Y" GET_FILENAME_COMPONENT(FLEX_EXE_NAME "${FLEX_EXECUTABLE}" NAME) - STRING(REGEX REPLACE "^.*${FLEX_EXE_NAME} (version )?([0-9]+[^ ]*)$" "\\2" + STRING(REGEX REPLACE "^.*${FLEX_EXE_NAME}\"? (version )?([0-9]+[^ ]*)$" "\\2" FLEX_VERSION "${FLEX_version_output}") UNSET(FLEX_EXE_NAME) ENDIF() |