[cmake-developers] [CMake 0013809]: add_dependencies and --graphviz

Mantis Bug Tracker mantis at public.kitware.com
Fri Dec 21 09:04:11 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13809 
====================================================================== 
Reported By:                Vassil Vassilev
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13809
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-12-21 09:04 EST
Last Modified:              2012-12-21 09:04 EST
====================================================================== 
Summary:                    add_dependencies and --graphviz
Description: 
Hi,
  I am using cmake in the context of C# and I don't use add_library or
add_executable but I have my own functions that do that trick. I resolve the
dependencies between the libraries (since have my home-grown csharp_add_library)
using add_dependencies.
  Using that however doesn't allow me to print the dependencies between the
targets, which is something IMO natural to expect.
  Am I doing something wrong in general or somebody just has to teach
cmGraphVizWriter to react on cmTarget::UTILITY? If that is the case I can
propose the attached patch.
Cheers,
Vassil
PS1: Note that I am newbie (I've started using cmake 3 days ago).
PS2: I had hard time building cmake sources in debug mode. Why there is no
./bootstrap --enable-debug switch?

Steps to Reproduce: 
1. add_custom_target(... libA ...)
2. add_custom_target(... libB ...)
3. add_dependencies(libA libB)
4. cmake --graphviz=file.dot path_to_some_source

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-12-21 09:04 Vassil VassilevNew Issue                                    
2012-12-21 09:04 Vassil VassilevFile Added: cmGraphVizWriterPlusUtility.diff    
               
======================================================================




More information about the cmake-developers mailing list