# How to set PLANTUML\_JAR\_PATH

**URL:** <https://discourse.cmake.org/t/how-to-set-plantuml-jar-path/3021>\
**Category:** Code\
**Tags:** os:linux\
**Created:** [March 25, 2021, 2:16pm UTC](https://discourse.cmake.org/t/how-to-set-plantuml-jar-path/3021 "2021-03-25T14:16:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kajtek](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kajtek/32/1322_2.png) [@Kajtek](https://discourse.cmake.org/u/Kajtek)\
**Post date:** [March 25, 2021, 2:16pm UTC](https://discourse.cmake.org/t/how-to-set-plantuml-jar-path/3021/1 "2021-03-25T14:16:52Z")

</div>

To simplify example I have a **docs** directory with the following content:

- plantuml.jar
- CMakeLists.txt
- index.md with embedded PlantUML

CMakeLists.txt:

```cmake
set(PLANTUML_JAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/plantuml.jar")

doxygen_add_docs(docs
        "${CMAKE_CURRENT_SOURCE_DIR}/index.md")

```

I run cmake, then **make docs** and get the following message:

```bash
docs/index.md:52: warning: ignoring \startuml command because PLANTUML_JAR_PATH is not set

```

CMake generated Doxyfile.docs:

```auto
PLANTUML_JAR_PATH = 
PLANTUML_CFG_FILE = 
PLANTUML_INCLUDE_PATH = 

```

Documentation is generated but without PlantUML diagrams. What am I doing wrong?

I used cmake 3.16.3 and 3.19.3 on Ubuntu 20.04.2 LTS and CnetOS 8.3.2011 with the same result.

---

<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:** [March 25, 2021, 6:29pm UTC](https://discourse.cmake.org/t/how-to-set-plantuml-jar-path/3021/2 "2021-03-25T18:29:45Z")

</div>

I don’t see where the `Doxyfile` gets generated by `FindDoxygen`'s `doxygen_add_docs`. does it come from for you?

Oh, I think I see now. Maybe you need `DOXYGEN_PLANTUML_JAR_PATH` instead?

---

<div class="post-metadata">

**Author:** ![Kajtek](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kajtek/32/1322_2.png) [@Kajtek](https://discourse.cmake.org/u/Kajtek)\
**Post date:** [March 25, 2021, 8:39pm UTC](https://discourse.cmake.org/t/how-to-set-plantuml-jar-path/3021/3 "2021-03-25T20:39:34Z")

</div>

It works with DOXYGEN\_ prefix. Thank you. This was not clear to me in the documentation.

---

<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:** [March 25, 2021, 8:55pm UTC](https://discourse.cmake.org/t/how-to-set-plantuml-jar-path/3021/4 "2021-03-25T20:55:19Z")

</div>

Yeah, it’s a bit buried I think. I’ve submitted [an MR](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5943) to help clarify what the CMake variable naming scheme is.

---

<div class="post-metadata">

**Author:** ![Kajtek](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kajtek/32/1322_2.png) [@Kajtek](https://discourse.cmake.org/u/Kajtek)\
**Post date:** [March 25, 2021, 9:01pm UTC](https://discourse.cmake.org/t/how-to-set-plantuml-jar-path/3021/5 "2021-03-25T21:01:05Z")

</div>

This is a very good idea.
