File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -446,15 +446,16 @@ if (MFC_SYSCHECK)
446446endif ()
447447
448448if (MFC_DOCUMENTATION)
449- # Files in docs/ examples are used to generate docs/documentation/examples.md
450- file (GLOB_RECURSE examples_DOCs CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /docs/ examples/*" )
449+ # Files in examples/ are used to generate docs/documentation/examples.md
450+ file (GLOB_RECURSE examples_DOCs CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /examples/*" )
451451
452452 add_custom_command (
453453 OUTPUT "${CMAKE_CURRENT_SOURCE_DIR} /docs/documentation/examples.md"
454- DEPENDS "${examples_DOCs} "
454+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /docs/examples.sh; ${ examples_DOCs} "
455455 COMMAND "bash" "${CMAKE_CURRENT_SOURCE_DIR} /docs/examples.sh"
456456 "${CMAKE_CURRENT_SOURCE_DIR} "
457457 COMMENT "Generating examples.md"
458+ VERBATIM
458459 )
459460
460461 file (GLOB common_DOCs CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /docs/*" )
@@ -486,7 +487,7 @@ if (MFC_DOCUMENTATION)
486487 "${CMAKE_CURRENT_BINARY_DIR} /${target} -Doxyfile" @ONLY)
487488
488489 set (opt_example_dependency "" )
489- if (target STREQUAL " documentation" )
490+ if (${ target} STREQUAL documentation)
490491 set (opt_example_dependency "${CMAKE_CURRENT_SOURCE_DIR} /docs/documentation/examples.md" )
491492 endif ()
492493
You can’t perform that action at this time.
0 commit comments