mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-21 17:23:56 +01:00
support new git service link in GenerateBuildVer.cmake
This commit is contained in:
1 parent
cf139a8fb7
commit
08f4af13cb
1 file changed
+2
-2
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user