# How to use the CMakeGraphVizOptions support

**URL:** https://discourse.cmake.org/t/how-to-use-the-cmakegraphvizoptions-support/5609
**Category:** Usage
**Created:** [May 4, 2022, 12:25pm UTC](https://discourse.cmake.org/t/how-to-use-the-cmakegraphvizoptions-support/5609 "2022-05-04T12:25:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JuliusCaesar](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@JuliusCaesar](https://discourse.cmake.org/u/JuliusCaesar)
#### Post date: [May 4, 2022, 12:25pm UTC](https://discourse.cmake.org/t/how-to-use-the-cmakegraphvizoptions-support/5609/1 "2022-05-04T12:25:10Z")

</div>

Hey guys,  
I noticed that CMake has a nice build in graphviz support.  
Now I now how that you can generate is graphwiz file using the command line

```auto
cmake --preset foo --graphviz=foo.dot
dot -Tsvg -o foo.dot

```

Now is it possible to call these commands from the Presets itself or a CMakeLists.txt?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 4, 2022, 1:04pm UTC](https://discourse.cmake.org/t/how-to-use-the-cmakegraphvizoptions-support/5609/2 "2022-05-04T13:04:21Z")

</div>

I suspect this would be a new feature request.

Cc: @kyle.edwards

---

<div class="post-metadata">

### Author: ![JuliusCaesar](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@JuliusCaesar](https://discourse.cmake.org/u/JuliusCaesar)
#### Post date: [May 5, 2022, 12:42pm UTC](https://discourse.cmake.org/t/how-to-use-the-cmakegraphvizoptions-support/5609/3 "2022-05-05T12:42:41Z")

</div>

this would be nice 🙂
