Xcode 7 dependencies are not correct when using TARGET_OBJECTS
I'm building a static library and test executable that use the OBJECT library feature to share object files.
A simplified form of our code looks like this:
set( MY_SRCS src.cpp)
add_library( test_objects OBJECT ${MY_SRCS})
add_library(testlib STATIC $<TARGET_OBJECTS:test_objects> dummy.cpp)
add_executable( test main.cpp $<TARGET_OBJECTS:test_objects>)
When src.cpp is modified, test_objects is rebuilt as is the executable test, but the testlib static library doesn't get rebuilt.
This works with Makefiles and Visual Studio. There seems to be something wrong with the Xcode dependency generation.
Thanks,
Scott