<div dir="ltr">On Thu, Sep 21, 2017 at 3:26 PM, Patrick Welche <span dir="ltr"><<a href="mailto:prlw1@cam.ac.uk" target="_blank">prlw1@cam.ac.uk</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Having run cmake 3.9.2 once already, I see:<br>
<br>
$ cat CMakeLists.txt<br>
set(var one two)<br>
message(${var})<br>
$ cmake .<br>
onetwo<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /tmp/cmaketest<br>
<br>
Would you have expected "one;two" rather than "onetwo"?<br></blockquote><div><br></div><div><div><div><div>When unquoted each list items is turned into a distinct argument for the message() invocation.<br></div>message() concatenates its arguments hence "onetwo".<br><br></div>To preserve the semicolon in the message try message("${var}")<br><br></div>Nils <br></div></div></div></div>