We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cbf443 commit 4aadac1Copy full SHA for 4aadac1
cmake/CPM.cmake
@@ -136,8 +136,7 @@ include(CMakeParseArguments)
136
137
# Infer package name from git repository uri (path or url)
138
function(cpm_package_name_from_git_uri URI RESULT)
139
- string(REGEX MATCH "([^/:]+)/?.git/?$" cpmGitUriMatch "${URI}")
140
- if(DEFINED cpmGitUriMatch)
+ if("${URI}" MATCHES "([^/:]+)/?.git/?$")
141
set(${RESULT}
142
${CMAKE_MATCH_1}
143
PARENT_SCOPE
0 commit comments