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. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers