From 4cb67dc3181c10115a6fd7798301378a7c3b9d4e Mon Sep 17 00:00:00 2001 From: acrovato <39187559+acrovato@users.noreply.github.com> Date: Sun, 5 Sep 2021 12:05:56 +0200 Subject: [PATCH] Disable target dox when defined by external project --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9477f6b..24a0657 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,7 +94,7 @@ ENDIF() # -- Doxygen (https://vicrucann.github.io/tutorials/quick-cmake-doxygen/) FIND_PACKAGE(Doxygen) # check if Doxygen is installed -IF(DOXYGEN_FOUND) +IF(DOXYGEN_FOUND AND NOT TARGET dox) # set input and output files SET(DOXYGEN_IN ${PROJECT_SOURCE_DIR}/Doxyfile.in) SET(DOXYGEN_OUT ${PROJECT_BINARY_DIR}/Doxyfile) -- GitLab