summaryrefslogtreecommitdiffstats
path: root/Modules/FindDoxygen.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2020-05-09 03:35:15 (GMT)
committerCraig Scott <craig.scott@crascit.com>2020-05-09 03:35:51 (GMT)
commit5ec969080240324f493c8ea55968660a06438aee (patch)
treecc4727e0fce4ee987104254c3511cab43844515a /Modules/FindDoxygen.cmake
parent683abe4366b5bf1149130177181fb81047f3a1dc (diff)
downloadCMake-5ec969080240324f493c8ea55968660a06438aee.zip
CMake-5ec969080240324f493c8ea55968660a06438aee.tar.gz
CMake-5ec969080240324f493c8ea55968660a06438aee.tar.bz2
FindDoxygen: Allow generated files with USE_STAMP_FILE
Fixes: #20597
Diffstat (limited to 'Modules/FindDoxygen.cmake')
-rw-r--r--Modules/FindDoxygen.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/FindDoxygen.cmake b/Modules/FindDoxygen.cmake
index faa03f9..184a9a2 100644
--- a/Modules/FindDoxygen.cmake
+++ b/Modules/FindDoxygen.cmake
@@ -999,9 +999,11 @@ doxygen_add_docs() for target ${targetName}")
foreach(_item IN LISTS DOXYGEN_INPUT)
get_filename_component(_abs_item "${_item}" ABSOLUTE
BASE_DIR "${_args_WORKING_DIRECTORY}")
- if(EXISTS "${_abs_item}" AND
- NOT IS_DIRECTORY "${_abs_item}" AND
- NOT IS_SYMLINK "${_abs_item}")
+ get_source_file_property(_isGenerated "${_abs_item}" GENERATED)
+ if(_isGenerated OR
+ (EXISTS "${_abs_item}" AND
+ NOT IS_DIRECTORY "${_abs_item}" AND
+ NOT IS_SYMLINK "${_abs_item}"))
list(APPEND _sources "${_abs_item}")
elseif(_args_USE_STAMP_FILE)
message(FATAL_ERROR "Source does not exist or is not a file:\n"