summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-03-15 15:22:00 +0100
committerSimon Rettberg2024-03-15 15:22:00 +0100
commite008354b2d31b289b938843c0c6ed8722a1a9cc6 (patch)
tree3b09c631d1f9289b3bfd80b96b6a3b012398c515
parentgithub: Build for CentOS 8 and 9 (diff)
downloadxloop-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.cmake2
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)