We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 120460b commit 8e435ffCopy full SHA for 8e435ff
1 file changed
CMakeLists.txt
@@ -244,14 +244,9 @@ install(EXPORT ${PROJECT_NAME}_targets
244
245
# add a target to generate API documentation with Doxygen
246
# 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()
+find_package(Doxygen)
+if(Doxygen_FOUND)
+ set(FILTER_PROTO2CPP_PY_PATH CACHE PATH "directory to the filter proto2cpp.py")
255
256
if(NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH}/proto2cpp.py)
257
@@ -270,4 +265,4 @@ else()
270
265
271
266
endif(NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH}/proto2cpp.py)
272
267
273
-endif(NOT DOXYGEN_FOUND)
268
+endif()
0 commit comments