View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016101CMakeCMakepublic2016-05-12 04:072016-06-10 14:31
ReporterRobert Bielik 
Assigned ToKitware Robot 
PlatformMacOSOS XOS Version10.11.3
Product VersionCMake 3.5.2 
Target VersionFixed in Version 
Summary0016101: ADD_SUBDIRECTORY with EXCLUDE_FROM_ALL fails to include target dependencies(XCode Generator)
DescriptionIf 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.
TagsNo tags attached.
Attached Files


Robert Bielik (reporter)
2016-05-12 04:08

Related to 0004209 and 0008365.
Robert Bielik (reporter)
2016-05-12 04:11
edited on: 2016-05-12 04:21

Reason why this blocks, is that we use the INSTALL target and do NOT want all the INSTALL targets from sub projects included, so we have to use EXCLUDE_FROM_ALL, and with EXCLUDE_FROM_ALL, project fails to build.

Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-05-12 04:07 Robert Bielik New Issue
2016-05-12 04:08 Robert Bielik Note Added: 0041057
2016-05-12 04:11 Robert Bielik Note Added: 0041058
2016-05-12 04:21 Robert Bielik Note Edited: 0041058
2016-06-10 14:29 Kitware Robot Note Added: 0043002
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team