[CMake] managing lists with space separated elements

Bill Hoffman bill.hoffman at kitware.com
Sat Apr 11 09:31:46 EDT 2009


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 feature.
> Wouldn't that be useful to have this?
> I don't see any reason why not to support both kinds of commonly used
> lists instead of only one.
> 
> 
But, it is not a list....   Why not use string replace?

-Bill



More information about the CMake mailing list