Merge pull request #2618 from rcurtin/go-version-regex
Fix regex for versions of Go without a patch version
This commit is contained in:
+2
-2
@@ -14,9 +14,9 @@ if (GO_EXECUTABLE)
|
||||
RESULT_VARIABLE RESULT
|
||||
)
|
||||
if (RESULT EQUAL 0)
|
||||
string(REGEX REPLACE ".*([0-9]+\\.[0-9]+\\.[0-9]+).*" "\\1"
|
||||
string(REGEX REPLACE ".*([0-9]+\\.[0-9]+\(\\.[0-9]+\)?).*" "\\1"
|
||||
GO_VERSION_STRING ${GO_VERSION_STRING})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
Reference in New Issue
Block a user