On 06/24/2014 07:11 AM, Kristofer Tingdahl wrote: > CMake adds order-only dependencies in build.ninja between > libraries and subsequent object-files, and I cannot see why > this is needed.
The object files of consuming targets might use headers generated by custom commands in earlier targets. The order-only dependencies ensure a safe build for such cases. They are not always needed, and the extra dependencies could be removed with sufficient work on the generator. See these issues: Optionally disable build order dependency target_link_libraries http://www.cmake.org/Bug/view.php?id=13799 target_link_libraries may have option not to add dependencies, for archive target http://www.cmake.org/Bug/view.php?id=14726 Generalize LINK_ONLY http://www.cmake.org/Bug/view.php?id=14751 and a workaround mentioned here: http://www.cmake.org/Bug/view.php?id=14726#c35023 -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