View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008123CMakeCMakepublic2008-11-19 14:012016-06-10 14:30
ReporterRalf Floca 
Assigned ToBill Hoffman 
PrioritynormalSeveritytextReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008123: Addressing an external MS project as target
DescriptionThere is the following situation: I use CMake as build control system (Windows platform, MS Visual Studio) for my own project (A). A depends on a second project (B). The project-files of B are pre generated and not covered by my CMake-Scripts. I use “INCLUDE_EXTERNAL_MSPROJECT” to integrate B into my solution.
Until this point everything works fine. But is there any way to address included external projects (like B) as a target in a CMake script. I would need this to add dependencies between A and B (e.g. ADD_DEPENDENCIES(A B)), so that B would also be build when I want to build A.
 
In the documentation and the mailing list I have found no information how to do this. And it seems that INCLUDE_EXTERNAL_MSPROJECT has no possibilities to introduce a Target identifier (like ADD_CUSTOM_TARGET)

Solution by Bill Hoffman:
>> include_external_msproject(B /some/path)
>>
>> add_dependencies(A INCLUDE_EXTERNAL_MSPROJECT_B)
>>

TagsNo tags attached.
Attached Files

 Relationships
related to 0009743closedAlex Neundorf Incorrect documentation of include_external_msproject() 
related to 0010920closedBill Hoffman CMake allows name collisions between targets 

  Notes
(0014914)
Bill Hoffman (manager)
2009-02-12 12:15

It creates a target INCLUDE_EXTERNAL_MSPROJECT_B automatically. So, is this a documentation bug?
(0041470)
Kitware Robot (administrator)
2016-06-10 14:27

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
2008-11-19 14:01 Ralf Floca New Issue
2009-02-12 12:15 Bill Hoffman Note Added: 0014914
2009-02-12 12:15 Bill Hoffman Status new => assigned
2009-02-12 12:15 Bill Hoffman Assigned To => Bill Hoffman
2010-06-30 19:04 David Cole Relationship added related to 0010920
2010-12-15 10:14 David Cole Relationship added related to 0009743
2016-06-10 14:27 Kitware Robot Note Added: 0041470
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team