[cmake-developers] [CMake 0016101]: ADD_SUBDIRECTORY with EXCLUDE_FROM_ALL fails to include target dependencies(XCode Generator)

Mantis Bug Tracker mantis at public.kitware.com
Thu May 12 04:07:14 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16101 
====================================================================== 
Reported By:                Robert Bielik
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16101
Category:                   CMake
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-05-12 04:07 EDT
Last Modified:              2016-05-12 04:07 EDT
====================================================================== 
Summary:                    ADD_SUBDIRECTORY with EXCLUDE_FROM_ALL fails to
include target dependencies(XCode Generator)
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-05-12 04:07 Robert Bielik  New Issue                                    
======================================================================



More information about the cmake-developers mailing list