Re: Help for ciftilib needed
Santiago Vila <[email protected]> Fri, 17 Oct 2025 11:34:54 +0200
| Newsgroups | gmane.linux.debian.devel.medical |
|---|---|
| Message-ID | <aPINvmcFXXXaxVgg@nuc> |
On Fri, Oct 17, 2025 at 09:43:37AM +0200, Andreas Tille wrote:
> CMake Error at cmake/Modules/UseDoxygen/UseDoxygen.cmake:138 (get_target_property):
> get_target_property() called with non-existent target "doc".
> Call Stack (most recent call first):
> CMakeLists.txt:23 (INCLUDE)
For your information/amusement: The file UseDoxygen.cmake was
apparently trying to get a property from a target before the target
existed at all. Moving the get_target_property after the if block,
like this:
--- a/cmake/Modules/UseDoxygen/UseDoxygen.cmake
+++ b/cmake/Modules/UseDoxygen/UseDoxygen.cmake
@@ -135,10 +135,10 @@
configure_file("${DOXYFILE_IN}" "${DOXYFILE}" @ONLY)
- get_target_property(DOC_TARGET doc TYPE)
if(NOT DOC_TARGET)
add_custom_target(doc)
endif()
+ get_target_property(DOC_TARGET doc TYPE)
add_dependencies(doc doxygen)
endif()
fixed the issue.
Thanks.