Re: [CMake] managing lists with space separated elements

2009-04-15 Thread Brad King
Piotr Dobrogost wrote: Brad King wrote: Last year I started working on new features to allow projects to specify flags with modern semicolon-separated lists. See my comment from 2008-10-09 here: http://www.cmake.org/Bug/view.php?id=6493 It looks like that is the 3rd solution I suggested p

Re: [CMake] managing lists with space separated elements

2009-04-13 Thread Piotr Dobrogost
Brad King wrote: > Last year I started working on new features to allow projects to specify > flags with modern semicolon-separated lists. See my comment from > 2008-10-09 here: > > http://www.cmake.org/Bug/view.php?id=6493 It looks like that is the 3rd solution I suggested previously; "Anot

Re: [CMake] managing lists with space separated elements

2009-04-13 Thread Brad King
Piotr Dobrogost wrote: Bill Hoffman wrote: It was a mistake to have CMAKE_CXX_FLAGS and CMAKE_C_STANDARD_LIBRARIES be strings they should have been lists. I'm glad you said this. It's something I've been trying to show in my posts. Certainly CMAKE_C_STANDARD_LIBRARIES should have been a lis

Re: [CMake] managing lists with space separated elements

2009-04-11 Thread Piotr Dobrogost
Bill Hoffman wrote: > It was a mistake > to have CMAKE_CXX_FLAGS and CMAKE_C_STANDARD_LIBRARIES be strings they > should have been lists. I'm glad you said this. It's something I've been trying to show in my posts. > If you want to convert a string to a list you > can do it like this: > > set(l

Re: [CMake] managing lists with space separated elements

2009-04-11 Thread Bill Hoffman
Piotr Dobrogost wrote: Bill Hoffman wrote: Piotr Dobrogost wrote: Bill Hoffman wrote: There is no such thing as a list with spaces in CMake, that is a string. So, no there is no way to use the list command on strings directly. You could use string(replace ) to do what you are trying to do.

Re: [CMake] managing lists with space separated elements

2009-04-11 Thread Piotr Dobrogost
Bill Hoffman wrote: > Piotr Dobrogost wrote: >> Bill Hoffman wrote: >> >>> There is no such thing as a list with spaces in CMake, that is a string. >>> So, no there is no way to use the list command on strings directly. You >>> could use string(replace ) to do what you are trying to do. >> >> I'v

Re: [CMake] managing lists with space separated elements

2009-04-11 Thread Bill Hoffman
Piotr Dobrogost wrote: Bill Hoffman wrote: There is no such thing as a list with spaces in CMake, that is a string. So, no there is no way to use the list command on strings directly. You could use string(replace ) to do what you are trying to do. I've seen people already asking about this f

Re: [CMake] managing lists with space separated elements

2009-04-11 Thread Piotr Dobrogost
Bill Hoffman wrote: > There is no such thing as a list with spaces in CMake, that is a string. > So, no there is no way to use the list command on strings directly. You > could use string(replace ) to do what you are trying to do. I've seen people already asking about this feature. Wouldn't that

Re: [CMake] managing lists with space separated elements

2009-04-11 Thread Piotr Dobrogost
Bill Hoffman wrote: > There is no such thing as a list with spaces in CMake, that is a string. > So, no there is no way to use the list command on strings directly. You > could use string(replace ) to do what you are trying to do. I've seen people already asking about this feature. Wouldn't that

Re: [CMake] managing lists with space separated elements

2009-04-10 Thread Bill Hoffman
Piotr Dobrogost wrote: Hi Can the list operations in cmake be carried out on a list with space separated elements without converting this list to cmakes' inner format? Below, "standard" I guess, way of doing this makes me cry :) STRING(REPLACE " " ";" _LIST ${CMAKE_C_STANDARD_LIBRARIES}) LIST(

[CMake] managing lists with space separated elements

2009-04-10 Thread Piotr Dobrogost
Hi Can the list operations in cmake be carried out on a list with space separated elements without converting this list to cmakes' inner format? Below, "standard" I guess, way of doing this makes me cry :) STRING(REPLACE " " ";" _LIST ${CMAKE_C_STANDARD_LIBRARIES}) LIST(REMOVE_ITEM _LIST "wldap3