-
-
Notifications
You must be signed in to change notification settings - Fork 737
DOC: inconsistent dependencies for documentation build #6550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,31 +162,43 @@ if(ITK_BUILD_DOCUMENTATION) | |
|
|
||
| find_package(LATEX) | ||
|
|
||
| file( | ||
| GLOB_RECURSE EXAMPLES_LIST | ||
| CONFIGURE_DEPENDS | ||
| "${ITK_SOURCE_DIR}/Examples/*.cxx" | ||
| "${ITK_SOURCE_DIR}/Examples/*.py" | ||
| "${ITK_SOURCE_DIR}/Examples/*.java" | ||
| ) | ||
| set(ITK_EXAMPLES ${ITK_BINARY_DIR}/Documentation/Doxygen/Examples.dox) | ||
|
|
||
| # Custom command to generate a examples page which include all ITK examples | ||
| add_custom_command( | ||
| OUTPUT | ||
| "${ITK_BINARY_DIR}/Documentation/Doxygen/Examples.dox" | ||
| Examples.dox | ||
| COMMAND | ||
| ${CMAKE_COMMAND} -D "PROJECT_SOURCE_DIR:PATH=${ITK_SOURCE_DIR}" -D | ||
| "OUTPUT_FILE:PATH=${ITK_BINARY_DIR}/Documentation/Doxygen/Examples.dox" -P | ||
| "OUTPUT_FILE:PATH=${ITK_EXAMPLES}" -P | ||
| "${ITK_SOURCE_DIR}/Utilities/Doxygen/GenerateExamplesDox.cmake" | ||
| WORKING_DIRECTORY "${ITK_SOURCE_DIR}/Examples" | ||
| #WORKING_DIRECTORY "${ITK_SOURCE_DIR}/Examples" | ||
| WORKING_DIRECTORY ${ITK_BINARY_DIR}/Documentation/Doxygen | ||
| DEPENDS | ||
| "${ITK_SOURCE_DIR}/Examples" | ||
| ${EXAMPLES_LIST} | ||
| "${ITK_SOURCE_DIR}/Utilities/Doxygen/GenerateExamplesDox.cmake" | ||
| ) | ||
| add_custom_target( | ||
| ITKDoxygenExamplesDox | ||
| DEPENDS | ||
| "${ITK_BINARY_DIR}/Documentation/Doxygen/Examples.dox" | ||
| set_source_files_properties( | ||
| ${ITK_EXAMPLES} | ||
| PROPERTIES | ||
| GENERATED | ||
| 1 | ||
| ) | ||
|
Comment on lines
175
to
193
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @albert-github Can you please address this greptile concern?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will look into it, but it will take a bit over a week before I have time to really look into it (and I don't have ninja).
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Greptile is right, and I confirmed with a minimal Ninja reproduction that this fails on a fresh build tree. Two problems:
Suggested replacement (verified to build and be a no-op on rebuild with Ninja): add_custom_command(
OUTPUT
${ITK_EXAMPLES}
COMMAND
${CMAKE_COMMAND} -D "PROJECT_SOURCE_DIR:PATH=${ITK_SOURCE_DIR}" -D
"OUTPUT_FILE:PATH=${ITK_EXAMPLES}" -P
"${ITK_SOURCE_DIR}/Utilities/Doxygen/GenerateExamplesDox.cmake"
DEPENDS
${EXAMPLES_LIST}
"${ITK_SOURCE_DIR}/Utilities/Doxygen/GenerateExamplesDox.cmake"
)
add_custom_target(ITKDoxygenExamplesDox ALL DEPENDS ${ITK_EXAMPLES})The |
||
| add_custom_target(ITKDoxygenExamplesDox ALL DEPENDS Examples.dox) | ||
|
|
||
| set( | ||
| ITK_DOXYGEN_INPUT | ||
| ${DOXYGEN_INCLUDE_DIRS} | ||
| ${ITK_SOURCE_DIR}/Documentation/Doxygen | ||
| ${ITK_BINARY_DIR}/Documentation/Doxygen | ||
| ${ITK_BINARY_DIR}/Documentation/Doxygen/Examples.dox | ||
| ${ITK_EXAMPLES} | ||
| ${ITK_BINARY_DIR}/Utilities/Doxygen/Modules | ||
| ${ITK_DOXYGEN_INPUT} | ||
| ) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.