[cmake-developers] INCLUDE_DIRECTORIES variable expansion (was: Performance problem in tll-set-include-and-defines-requirements)
David Cole
david.cole at kitware.com
Thu Nov 29 14:40:02 EST 2012
Before we do another policy here, does the performance problem go away if
you comment out the SetProperty calls?
If so, we can just add some code that detects whether any variables were
actually expanded in the call, and then only call SetProperty when that's
the case. (In the vast majority of cases there will not be any variables in
the property values...)
The code is left in there simply because it was there before the "moving
includes to a target property" change.
It is still unclear to me why that code is required. I suspect it is
probably not at this point, but since I don't understand the full history
there, I can't state that with 100% certainty.
This is a problem only now that generator expressions are use-able in this
context. If there were no $ in the input, then ExpandVariablesInString
would return immediately without doing any significant work...
On Thu, Nov 29, 2012 at 2:30 PM, David Cole <david.cole at kitware.com> wrote:
> Looking at this now, will reply in just a minute
>
>
>
>
> On Thu, Nov 29, 2012 at 2:14 PM, Stephen Kelly <steveire at gmail.com> wrote:
>
>> Brad King wrote:
>>
>> > On 11/29/2012 07:34 AM, Stephen Kelly wrote:
>> >> The patch that added that line is
>> >> d899eb71b52616c9e3f3f5987f229619605e632b. It is apparently there for
>> >> strict backwards compatibility, but it is not clear what exactly needs
>> to
>> >> be backwards compatible there. Any idea about that?
>> >
>> > I don't know off the top of my head, Dave?
>> >
>> > Stephen, please add the policy that the d899eb71 commit message
>> > suggests. Only bother with expansion if the policy is OLD or
>> > not set.
>>
>> Ok, I'll wait until we hear from Dave so I can write a well-informed
>> commit
>> message.
>>
>> Thanks,
>>
>> Steve.
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20121129/5a7b9e3e/attachment.html>
More information about the cmake-developers
mailing list