[CMake] Problem with circular dependencies
Michael Jackson
mike.jackson at bluequartz.net
Thu May 28 15:29:26 EDT 2009
On May 28, 2009, at 3:03 PM, Dmytro Ovdiienko wrote:
>
> > The other side of this problem is you have to write ADD_SUBDIRECTORY
> > commands in specific order. IMHO it is inconvenient.
>
> CMakeLists are essentially a scripting language, so of course order
> matters. What would you propose instead?
>
> But... why does TARGET_LINK_LIBRARIES work correctly? You can pass
> not loaded-yet project name to TARGET_LINK_LIBRARIES.
Remember that you are passing the names of _libraries_ to
"target_link_libraries" and not the names of Projects. The fact that
it might work just means that you named your libraries the same as the
project name.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
More information about the CMake
mailing list