[CMake] Action to perform unconditionally
Michael Hertling
mhertling at online.de
Wed Feb 2 08:42:34 EST 2011
On 02/02/2011 02:27 PM, Ilja Golshtein wrote:
> Michael,
>
> the problematic step is ADD_DEPENDENCIES.
>
> I don't have any suitable target.
>
> The referred CMakeLists.txt has main/main.c. Unfortunately mine does not - just add_subdirectory.
But in the subdirectory, there's a target, isn't it? So, just use
ADD_DEPENDENCIES() there; with CMake, targets are global entities.
Regards,
Michael
More information about the CMake
mailing list