On Fri, Jul 24, 2009 at 03:23:24PM +0200, t m wrote:
> set (_list)
> set (_list "foo;bar")# 2 items
> list (LENGTH _list _len)
> message (STATUS "_len=${_len}")# 2
> 
> set (_list)
> set (_list "foo[];bar")#2 items
> list (LENGTH _list _len)
> message (STATUS "_len=${_len}")# 2
> 
> set (_list)
> list(APPEND _list "foo]" "bar")#2 items
> list (LENGTH _list _len)
> message (STATUS "_len=${_len}")#1

I think the difference is more likely to be caused by the different list
construction method (set() vs list(APPEND ...)) than by the single
square bracket. What happens if you use set() for that case instead?

The first thing I would look at in this scenario is what does the output
of message("${_list}") look like for the third case?

tyler
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to