[cmake-developers] CMake is slow for project with hundred target and one command with large number of dependencies

Stephen Kelly steveire at gmail.com
Wed Jul 24 06:18:57 EDT 2013


Nicolas Desprès wrote:

>> > That's said we can optimize further as I mentioned in my comment (
>> >
>>
>> 
https://github.com/nicolasdespres/CMake/commit/59c871da8b00554812e93ba9c6e47d864424efb0#L0R2023
>> ).
>> > Do you have an opinion about it?
>>
>> Do I understand correctly that the issue is that OutputToSource values
>> can be absolute or relative paths? That would be fixable by patching only
>> UpdateOutputToSourceMap, right?
>>
> Not exactly. According to my tests only
> cmMakefiles::GetSourceFileWithOutput's cname argument can be either
> relative or absolute.

Then patching the callers of GetSourceFileWithOutput is worth looking into. 
There are not many. You'd have to try it and see if any issues come up.

Thanks,

Steve.





More information about the cmake-developers mailing list