Skip to content

Commit 61688cd

Browse files
committed
#255: CMake Docs: Missing call to examples.sh
1 parent 7994f5d commit 61688cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,16 @@ if (MFC_SYSCHECK)
446446
endif()
447447

448448
if (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

0 commit comments

Comments
 (0)