[cmake-developers] INCLUDE_DIRECTORIES variable expansion

Stephen Kelly steveire at gmail.com
Thu Dec 6 11:05:43 EST 2012


Brad King wrote:

> On 11/29/2012 02:48 PM, Stephen Kelly wrote:
>> So maybe I should only do the expansion if containsVariable is true?
>> 
>> 
+//----------------------------------------------------------------------------
>> +static bool containsVariable(const std::string &lib)
>> +{
>> +  const std::string::size_type openpos = lib.find("${");
>> +  return (openpos != std::string::npos)
>> +      && (lib.find("}", openpos) != std::string::npos);
>> +}
>> 
>> Then I wouldn't need a policy.
> 
> IMO the policy is worthwhile anyway.  I reverted your previous
> topic using the above approach and replaced it with this:
> 
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2a0a5c78
> 

Fair enough. :) Thanks.




More information about the cmake-developers mailing list