[CMake] addprefix macro?
    Michael Wild 
    themiwi at gmail.com
       
    Wed May  5 10:34:58 EDT 2010
    
    
  
On 5. May, 2010, at 16:29 , Benoit Thomas wrote:
> On 2010-05-05 10:22, Michael Wild wrote:
>>  # prefix and suffix elements
>> >      foreach(l ${list_name})
>> >        list(APPEND ${list_name}_TMP ${prefix}${l}${suffix} )
>> >      endforeach()
>>   
> You also have an error in your foreach, it should be:
> 
>    foreach(l ${${list_name}})
> 
> -- 
> Ben.
Or, alternatively (for recent versions of CMake)
foreach(l IN LISTS ${list_name})
Michael
    
    
More information about the CMake
mailing list