commit eab6bde86496433ec6920a0f44ab6f0a8a208194
parent df340315538015fd5143664850b6085bbb3340a6
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Thu, 3 Nov 2022 17:17:28 +0100
Merge pull request #202 from abique/next
Fix variable assignment
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -3,7 +3,7 @@ enable_testing()
# Extract the version from header file
file(READ "include/clap/version.h" clap_version_header)
-string(REGEX MATCH "CLAP_VERSION_MAJOR \\(\\(uint32_t\\)([0-9]+)\\)" CLAP_VERSION_MAJOR ${clap_version_header})
+string(REGEX MATCH "CLAP_VERSION_MAJOR \\(\\(uint32_t\\)([0-9]+)\\)" _ ${clap_version_header})
set(CLAP_VERSION_MAJOR ${CMAKE_MATCH_1})
string(REGEX MATCH "CLAP_VERSION_MINOR \\(\\(uint32_t\\)([0-9]+)\\)" _ ${clap_version_header})
set(CLAP_VERSION_MINOR ${CMAKE_MATCH_1})