ADD_SUBDIRECTORY with EXCLUDE_FROM_ALL fails to include target dependencies(XCode Generator)
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If the main target executable depends on targets that are in a subdirectory, using EXCLUDE_FROM_ALL
in ADD_SUBDIRECTORY
fails to include the target dependencies, leading to linking errors.
From documentation:
Note that inter-target dependencies supercede this exclusion. If a target built by the parent project depends on a target in the subdirectory, the dependee target will be included in the parent project build system to satisfy the dependency
This works fine for MSYS, Unix and Visual Studio generators, but NOT Xcode.