[CMake] [2.8.12.1] Bug in Xcode generation of STATIC from OBJECT libraries
Brad King
brad.king at kitware.com
Thu Jan 23 10:22:56 EST 2014
On Thu, Jan 23, 2014 at 8:03 AM, Paul Smith <paul at 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
More information about the CMake
mailing list