Skip to content

Commit 7ba9fca

Browse files
committed
#550 Remove redundant warning about Doxygen
Signed-off-by: Martin Stump <11492152+globberwops@users.noreply.github.com>
1 parent d0ecf4c commit 7ba9fca

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

CMakeLists.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,9 @@ install(EXPORT ${PROJECT_NAME}_targets
197197

198198
# add a target to generate API documentation with Doxygen
199199
# Dependencies: Doxygen and proto2cpp.py
200-
FIND_PACKAGE(Doxygen)
201-
set(FILTER_PROTO2CPP_PY_PATH CACHE PATH "directory to the filter proto2cpp.py")
202-
203-
if(NOT DOXYGEN_FOUND)
204-
205-
message(WARNING "Doxygen could not be found.")
206-
207-
else()
200+
find_package(Doxygen)
201+
if(Doxygen_FOUND)
202+
set(FILTER_PROTO2CPP_PY_PATH CACHE PATH "directory to the filter proto2cpp.py")
208203

209204
if(NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH}/proto2cpp.py)
210205

@@ -223,4 +218,4 @@ else()
223218

224219
endif(NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH}/proto2cpp.py)
225220

226-
endif(NOT DOXYGEN_FOUND)
221+
endif()

0 commit comments

Comments
 (0)