nichijou/cmake/plantuml.cmake

15 lines
351 B
CMake
Raw Normal View History

2019-12-13 19:44:34 -05:00
if(PLANTUML_FOUND)
return()
endif()
find_program(PLANTUML_PATH
NAMES plantuml plantuml.bat
DOC "Path to PlantUML wrapper script.")
if(NOT PLANTUML_PATH)
message(FATAL_ERROR "Could not find PlantUML.")
endif()
set(PLANTUML_FOUND ON CACHE BOOL "Found PlantUML.")
mark_as_advanced(PLANTUML_FOUND)
message(STATUS "Found PlantUML: ${PLANTUML_PATH}")