[cmake-developers] cost of usage requirements

Stephen Kelly steveire at gmail.com
Tue Jul 15 07:00:24 EDT 2014


On 07/09/2014 05:12 PM, Brad King wrote:
> On 06/11/2014 10:46 AM, Brad King wrote:
>> Here is a sscce::
>>
>>   cmake_minimum_required(VERSION 2.8.9)
>>   project(ManyLibs C)
>>   set(LibPrev)
>>   foreach(n RANGE 100)
>>     add_library(Lib${n} SHARED lib.c)
>>     target_link_libraries(Lib${n} LINK_PUBLIC ${LibPrev})
>>     set(LibPrev Lib${n})
>>   endforeach()
> A similar case also appears when building VTKWikiExamples
> as discussed on the cmake user list here:
>
>  cmake 3.0 memory usage on VTKWikiExamples
>  http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/49910/focus=49922
>
> Memory usage explodes during generation and CMake sometimes
> runs out and crashes.

Is this affected in any way by the recent refactoring with the same
motivation?

Thanks,

Steve.




More information about the cmake-developers mailing list