Skip to content

Commit 8e435ff

Browse files
globberwopspmai
authored andcommitted
#550 Remove redundant warning about Doxygen
Signed-off-by: Martin Stump <11492152+globberwops@users.noreply.github.com>
1 parent 120460b commit 8e435ff

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
@@ -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()

0 commit comments

Comments
 (0)