To simplify example I have a docs directory with the following content:
- plantuml.jar
- CMakeLists.txt
- index.md with embedded PlantUML
CMakeLists.txt:
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:
docs/index.md:52: warning: ignoring \startuml command because PLANTUML_JAR_PATH is not set
CMake generated Doxyfile.docs:
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.