[CMake] List in some cases ignores empty list items if they are at the beginning of the list

2009-02-21 Thread Svami Dhyan Nataraj
List in some cases ignores empty list items if they are at the begining of the list. Here is an example: cmake_policy(SET CMP0007 NEW) # do not ignore empty list item in list command SET(text "1;;23;4;") WHILE(${text}) list(GET text 0 str) list(REMOVE_AT text 0) MESSAGE(STATUS "-${str}-"

[CMake] LIST does not respect slash-qoted seminolons

2009-02-21 Thread Svami Dhyan Nataraj
LIST does not respect slash-qoted seminolons: When I read the file via FILE(STRINGS, all semicolons that were in file are quoted(or masked do not know right word) by backslash... but LIST operator does not respect it. for example: cmake_policy(SET CMP0007 NEW) # do not ignore empty list item in