support new git service link in GenerateBuildVer.cmake

This commit is contained in:
DrPerkyLegit committed 2026-10-31 17:43:22 -04:00
1 parent cf139a8fb7
commit 08f4af13cb
1 file changed
+2 -2
+2 -2
View File
@@ -53,8 +53,8 @@ else()
OUTPUT_STRIP_TRAILING_WHITESPACE
RESULT_VARIABLE rc
)
# Handle github urls only
if(rc EQUAL 0 AND GIT_REMOTE_URL MATCHES "github\\.com[:/]([^/:]+/[^/.]+)(\\.git)?")
# Handle git huckle urls only
if(rc EQUAL 0 AND GIT_REMOTE_URL MATCHES "neolegacy\\.dev[:/]([^/:]+/[^/.]+)(\\.git)?")
set(GIT_REF "${CMAKE_MATCH_1}/${GIT_BRANCH}")
else()
set(GIT_REF "UNKNOWN/${GIT_BRANCH}")