CpackNuget.cmake cannot properly handle version ranges containing '['
When given a version range like this -> [1.0,2.0) , CpackNuget is unable to properly render a valid nuspec file.
For example, below is the expected content of the dependencies section of a nuspec file;
<dependency id="third_party_a" version="1.0.0" />
<dependency id="third_party_b" version="[225.8.0,226.0.0)" />
<dependency id="third_party_c" version="[4.0.0,5.0.0)" />
However when CpackNuget renders the nuspec with the above dependency info as input, it renders a nuspec as follows;
<dependency id="third_party_a" version="1.0.0" />
<dependency id="third_party_b" version="[225.8.0,226.0.0)" />;<dependency id="third_party_c" version="[4.0.0,5.0.0)" />
Notice the first element (third_party_a) was rendered correctly. However thereafter we get the next 2 (third_party_b & third_party_c) on the same line separated by ';', which makes the nuspec file invalid.
Edited by yacoub hossain