Re: [CMake] CMake list and Single square brackets

2009-07-27 Thread t m
Looks like a bug. Submitted: http://public.kitware.com/Bug/view.php?id=9317 Regards, Tomek. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

[CMake] CMake list and Single square brackets

2009-07-24 Thread t m
Hello All, Can anyone explain me why in the 3rd call of message function the following code will return 1 instead of 2 cmake_minimum_required( VERSION 2.6 ) set (_list) set (_list foo;bar)# 2 items list (LENGTH _list _len) message (STATUS _len=${_len})# 2 set (_list) set (_list foo[];bar)#2

Re: [CMake] CMake list and Single square brackets

2009-07-24 Thread Tyler Roscoe
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

Re: [CMake] CMake list and Single square brackets

2009-07-24 Thread Tyler Roscoe
Make sure you reply to the list so others can help you and for archiving. On Fri, Jul 24, 2009 at 05:33:25PM +0200, t m wrote: Hi Tyler, SET, APPEND doesn't meter. cmake_minimum_required( VERSION 2.6 ) set (_list) list(APPEND _list foo bar)#2 items list (LENGTH _list _len) message

Re: [CMake] CMake list and Single square brackets

2009-07-24 Thread Bill Hoffman
Tyler Roscoe wrote: LENGTH returns the wrong thing whether you have an unclosed open or closed bracket. I agree that this is a bug. Unless one of the developers chimes in, can you open an issue here: http://public.kitware.com/Bug/ Looks like a bug. -Bill