diff options
author | Simon Rettberg | 2024-03-15 15:22:00 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-03-15 15:22:00 +0100 |
commit | e008354b2d31b289b938843c0c6ed8722a1a9cc6 (patch) | |
tree | 3b09c631d1f9289b3bfd80b96b6a3b012398c515 | |
parent | github: Build for CentOS 8 and 9 (diff) | |
download | xloop-e008354b2d31b289b938843c0c6ed8722a1a9cc6.tar.gz xloop-e008354b2d31b289b938843c0c6ed8722a1a9cc6.tar.xz xloop-e008354b2d31b289b938843c0c6ed8722a1a9cc6.zip |
cmake: Fix error when checkpatch.pl is found but version cannot be extracted
-rw-r--r-- | cmake/FindCheckPatch.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindCheckPatch.cmake b/cmake/FindCheckPatch.cmake index 2772676..3fa1ec8 100644 --- a/cmake/FindCheckPatch.cmake +++ b/cmake/FindCheckPatch.cmake @@ -20,7 +20,7 @@ if(CheckPatch_EXECUTABLE) execute_process(COMMAND ${CheckPatch_EXECUTABLE} --version OUTPUT_VARIABLE CheckPatch_VERBOSE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) - string(REGEX REPLACE ".*Version:.([0-9]+\\.[0-9]+).*" "\\1" CheckPatch_VERSION ${CheckPatch_VERBOSE_VERSION}) + string(REGEX REPLACE ".*Version:.([0-9]+\\.[0-9]+).*" "\\1" CheckPatch_VERSION "${CheckPatch_VERBOSE_VERSION}") endif(CheckPatch_EXECUTABLE) include(FindPackageHandleStandardArgs) |