On Thu, Sep 21, 2017 at 3:26 PM, Patrick Welche <pr...@cam.ac.uk> wrote:
> Having run cmake 3.9.2 once already, I see: > > $ cat CMakeLists.txt > set(var one two) > message(${var}) > $ cmake . > onetwo > -- Configuring done > -- Generating done > -- Build files have been written to: /tmp/cmaketest > > Would you have expected "one;two" rather than "onetwo"? > When unquoted each list items is turned into a distinct argument for the message() invocation. message() concatenates its arguments hence "onetwo". To preserve the semicolon in the message try message("${var}") Nils
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake