File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,9 @@ install(EXPORT ${PROJECT_NAME}_targets
244244
245245# add a target to generate API documentation with Doxygen
246246# Dependencies: Doxygen and proto2cpp.py
247- FIND_PACKAGE (Doxygen)
248- set (FILTER_PROTO2CPP_PY_PATH CACHE PATH "directory to the filter proto2cpp.py" )
249-
250- if (NOT DOXYGEN_FOUND)
251-
252- message (WARNING "Doxygen could not be found." )
253-
254- else ()
247+ find_package (Doxygen)
248+ if (Doxygen_FOUND)
249+ set (FILTER_PROTO2CPP_PY_PATH CACHE PATH "directory to the filter proto2cpp.py" )
255250
256251 if (NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH} /proto2cpp.py)
257252
@@ -270,4 +265,4 @@ else()
270265
271266 endif (NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH} /proto2cpp.py)
272267
273- endif (NOT DOXYGEN_FOUND )
268+ endif ()
You can’t perform that action at this time.
0 commit comments