[CMake] CMakeGraphVizOptions not working consistently

Jon Hodgson jonhodgson.devlists at googlemail.com
Fri Sep 18 14:03:37 EDT 2015


Hi,

I'm using the graphviz functionality of CMake to allow me to extract
dependencies and thus a sub-project build order for auto builds (I'm using
buildbot, and building sub projects separately gives more informative
feedback since I can see which ones fail)

Now as part of that I generate a CMakeGraphVizOptions file containing three
lines

set(GRAPHVIZ_EXTERNAL_LIBS FALSE)
set(GRAPHVIZ_GENERATE_PER_TARGET FALSE)
set(GRAPHVIZ_GENERATE_DEPENDERS FALSE)

Now on windows, using CMake 3.2.1 this works as expected, I get just one
file, the one fro the whole project, with no external libs referenced.

But on OSX, using CMake 3.3.2, only the GRAPHVIZ_EXTERNAL_LIBS variable
seems to make a difference. So I get graphiz files for every target and
depender files for them all.

I thought it might be just responding to the first line, but tried
switching them around and the result was the same.

Luckily the one variable that is working is the one that is crucial for my
needs, the others are just to avoid unnecessary files cluttering things up,
but I'm still intrigued as to why it's failing.

Have I missed something, or is there a bug?

regards

Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150918/07c2aa3e/attachment.html>


More information about the CMake mailing list