On Thu, Jan 23, 2014 at 8:03 AM, Paul Smith <p...@mad-scientist.net> wrote: > add_library(mylib STATIC $<TARGET_OBJECTS:mylib_OBJECTS>) [snip] > The Makefile generators work fine > > For Xcode, though, the link fails:
This is a known limitation. From the add_library documentation: http://www.cmake.org/cmake/help/v2.8.12/cmake.html#command:add_library "Some native build systems may not like targets that have only object files, so consider adding at least one real source file" -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://www.cmake.org/mailman/listinfo/cmake