2014-10-23 16:05 GMT+02:00 Petr Kmoch <[email protected]>:

> Hi Domen.
>
> This is what helps me reason about it:
>
> A string with a ';' in it is a list.
> An unqouted ';' separates arguments to CMake commands.
> string(REPLACE ...) simply concatenates all of its 'input' parameters.
>
> So, when you expand ${list_1} in the last line, it will simply replace in
> the concatenation of its elements - so there's no semicolon in them, of
> course. What you want to do is treat the entire list_1 as a single string:
>
> string(REPLACE ";" "." str_2 "${list_1}")
>
> This should do what you expect.
>

Haven't thought about that... Now it works :) Thanks!

Domen


>
> Petr
>
-- 

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

Reply via email to