File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
doc/main/examples_testing Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,7 @@ if (TBB_DOC_EXAMPLES)
336
336
if (NOT EXISTS ${TBB_DOC_EXAMPLES_DIRECTORY} )
337
337
message (FATAL_ERROR "Documentation examples are not found while testing was enabled" )
338
338
else ()
339
+ message (STATUS "Enabling testing for examples from documentation" )
339
340
enable_testing ()
340
341
add_subdirectory (${TBB_DOC_EXAMPLES_DIRECTORY} )
341
342
endif ()
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ add_custom_target(build-doc-examples
23
23
set (doc_examples_test_label "doc-examples" )
24
24
25
25
macro (add_doc_example _doc_example_path )
26
- message (STATUS "Adding ${_doc_example_path} " )
27
-
28
26
get_filename_component (_doc_example_name "${_doc_example_path} " NAME_WE )
29
27
add_executable (${_doc_example_name} EXCLUDE_FROM_ALL "${_doc_example_path} " )
30
28
@@ -36,13 +34,8 @@ macro(add_doc_example _doc_example_path)
36
34
set_tests_properties (${_doc_example_name} PROPERTIES LABELS "${doc_examples_test_label} " )
37
35
endmacro ()
38
36
39
- file (GLOB_RECURSE REFERENCE_EXAMPLES_LIST "${_reference_examples_path} /*.cpp" )
40
- file (GLOB_RECURSE USERGUIDE_EXAMPLES_LIST "${_userguide_examples_path} /*.cpp" )
41
-
42
- foreach (_doc_example_path IN LISTS REFERENCE_EXAMPLES_LIST )
43
- add_doc_example (${_doc_example_path} )
44
- endforeach ()
37
+ file (GLOB_RECURSE DOC_EXAMPLES_LIST "${_reference_examples_path} /*.cpp" "${_userguide_examples_path} /*.cpp" )
45
38
46
- foreach (_doc_example_path IN LISTS USERGUIDE_EXAMPLES_LIST )
39
+ foreach (_doc_example_path IN LISTS DOC_EXAMPLES_LIST )
47
40
add_doc_example (${_doc_example_path} )
48
41
endforeach ()
You can’t perform that action at this time.
0 commit comments