Skip to content

Commit f43534d

Browse files
chore(deps): Update CPM.cmake to v0.42.2 (#674)
1 parent 51ed1e7 commit f43534d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cmake/cpm/CPM.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ endif()
4545
if(DEFINED EXTRACTED_CPM_VERSION)
4646
set(CURRENT_CPM_VERSION "${EXTRACTED_CPM_VERSION}${CPM_DEVELOPMENT}")
4747
else()
48-
set(CURRENT_CPM_VERSION 0.42.1)
48+
set(CURRENT_CPM_VERSION 0.42.2)
4949
endif()
5050

5151
get_filename_component(CPM_CURRENT_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
@@ -258,7 +258,9 @@ endfunction()
258258

259259
# Try to infer package name and version from a url
260260
function(cpm_package_name_and_ver_from_url url outName outVer)
261-
if(url MATCHES "[/\\?]([a-zA-Z0-9_\\.-]+)\\.(tar|tar\\.gz|tar\\.bz2|zip|ZIP)(\\?|/|$)")
261+
if(url MATCHES
262+
"[/\\?]([a-zA-Z0-9_\\.-]+)\\.(tar|tar\\.gz|tar\\.bz2|tar\\.xz|tar\\.zst|zip|ZIP)(\\?|/|$)"
263+
)
262264
# We matched an archive
263265
set(filename "${CMAKE_MATCH_1}")
264266

0 commit comments

Comments
 (0)