Skip to content

Commit

Permalink
Allow more characters in nuget versions
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Dec 27, 2024
1 parent a450452 commit a138b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/nuget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function(nuget_install)
execute_process(COMMAND "${NUGET}" install "${nuget_PACKAGES_CONFIG}" -OutputDirectory "${nuget_PACKAGES_DIR}" -NonInteractive)

# Extract package infos
set(nuget_package_regex "package id=\"(.*)\" version=\"([0-9\.]*)\"")
set(nuget_package_regex "package id=\"(.*)\" version=\"([0-9A-Za-z\.\-]*)\"")
file(STRINGS "${nuget_PACKAGES_CONFIG}" NUGET_PACKAGES REGEX ${nuget_package_regex})
foreach(package IN LISTS NUGET_PACKAGES)
string(REGEX MATCH "${nuget_package_regex}" PACKAGE_MATCH "${package}")
Expand Down

0 comments on commit a138b90

Please sign in to comment.