diff --git a/chapter06/ex02_doxplantuml/CMakeLists.txt b/chapter06/ex02_doxplantuml/CMakeLists.txt index ced23f0..ebc53f7 100644 --- a/chapter06/ex02_doxplantuml/CMakeLists.txt +++ b/chapter06/ex02_doxplantuml/CMakeLists.txt @@ -13,7 +13,11 @@ project( # Doxygen configuration ############################################################################ # Locate PlantUML JAR file in the environment -find_path(PLANTUML_JAR_PATH NAMES plantuml.jar HINTS "/usr/share/plantuml" "C:/Program Files/PlantUML" "C:/ProgramData/chocolatey/lib/plantuml/tools" "/usr/local/Cellar/plantuml@1.2021.13/1.2021.13/libexec" REQUIRED) +find_path(PLANTUML_JAR_PATH NAMES plantuml.jar HINTS "/usr/share/plantuml" "C:/Program Files/PlantUML" "C:/ProgramData/chocolatey/lib/plantuml/tools" "/usr/local/Cellar/plantuml@1.2021.13/1.2021.13/libexec") +if(PLANTUML_JAR_PATH-Notfound) + message(STATUS "PlantUML JAR file not found. Will not build the plantuml example") + return() +endif() # Locate Doxygen in the environment. This will set DOXYGEN_FOUND variable # as a result. When Doxygen is found, DOXYGEN_VERSION variable will be