CPack: NuGet and square bracket version ranges
Trying to pass the NuGet package version spec I faced w/ a bug in args parser:
function(foo)
foreach(dep IN LISTS ARGN)
message(STATUS "dep=${dep}")
endforeach()
endfunction()
foo(
"cmake 3.16"
"boost [1.70.0,1.71.0)"
"foobar 1.2.3"
)
Output:
-- dep=cmake 3.16
-- dep=boost [1.70.0,1.71.0);foobar 1.2.3
I.e., the second argument to the foo()
wasn't split correctly. The parser has some problem w/ "unpaired" braces... But, it's a legal syntax in NuGet, so I really want to pass that sort of parameters.