[CMake] subdirs and depenency handling
Brad King
brad.king at kitware.com
Tue May 10 08:50:51 EDT 2005
Alexander Neundorf wrote:
> I got the following warning message:
>
> Library projectmanager_interfaces is defined using ADD_LIBRARY after the
> library is used using TARGET_LINK_LIBRARIES for the target
> kdevprojectmanager. This breaks CMake's dependency handling. Please fix
> the CMakeLists.txt file.
This means you are trying to link to a library that is built in a
directory that is not built until after the target that wants the
library. The warning means that the only way to make sure everything is
up to date is to run make twice.
> Is this still the case or are there plans to change this behaviour ?
> In KDE there are several places where this structure is used and moving
> files around in all these places would be "problematic".
The problem can only be fixed at the CMake level by switching to a
global makefile system. We have plans to experiment with this but it is
not yet ready.
-Brad
More information about the CMake
mailing list