<div dir="ltr"><div>Let's say:</div><div>set(WORDS "cat" "dog")<br></div><div>and then:</div><div>"<JOIN:${WORDS}, >"<br></div><div>which will produce "cat\ dog" instead of "cat dog".</div><div>Looks like a bug to me.</div><div><br></div><div>Minimal example to reproduce the issue.</div>















<div><br></div>File - CMakeLists.txt:<br><br>cmake_minimum_required(VERSION 3.1)<br><br>project(escape_me_not)<br><br>set(WORDS "cat" "dog")<br><br>add_custom_command(OUTPUT cage.zip COMMAND zip cage.zip "<JOIN:${WORDS}, >")<br><br>add_custom_target(escape_me_not ALL DEPENDS cage.zip)<br><br>File - cat:<br>A cat<br><br>File - dog:<br>A dog<div></div><div><br></div><div>After calling cmake in CMakeFiles/escape_me_not.dir/build.make:</div><div>







<p class=""><span class="">zip cage.zip cat\ dog</span></p><p class="">After calling make:</p><p class="">







</p><p class=""><span class="">zip warning: name not matched: cat dog</span></p><p class=""><span class="">Does any workaround exists for that? Should I file a bug?</span></p></div>







</div>