[cmake-developers] Backward compatbility code

Stephen Kelly steveire at gmail.com
Tue Feb 11 11:48:05 EST 2014


Brad King wrote:

>>>>// For backwards compatibility replace varibles in source names.
>>>>-  // This should eventually be removed.
>>>>+  // TODO: This should eventually be removed.
>>>>this->Makefile->ExpandVariablesInString(src);
>>>
>>> A policy should be added to remove this behavior.
>>
>> Any idea how to unit test this?
> 
> The above expansion makes this code work:
> 
> set(sources foo.c)
> add_executable(foo \${sources})
> 
> but shouldn't with the policy.

Confirmed. I added CMP0049 to control this behavior.

Thanks,

Steve.






More information about the cmake-developers mailing list