File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 51
51
target-args : --cmake-args -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DBUILD_TESTING=ON -DENABLE_CLANG_TIDY=ON -DENABLE_CODE_COVERAGE=ON -DENABLE_CPACK=ON
52
52
53
53
- name : CodeCov
54
- if : matrix.distro == 'noble '
54
+ if : matrix.distro == 'jammy '
55
55
working-directory : target_ws
56
56
shell : bash
57
57
run : |
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ target_link_libraries(${PROJECT_NAME} PUBLIC Boost::boost Boost::filesystem ${CM
39
39
target_compile_definitions (${PROJECT_NAME} PUBLIC ${COMPILE_DEFINITIONS} )
40
40
target_cxx_version (${PROJECT_NAME} PUBLIC VERSION 17 )
41
41
target_clang_tidy (${PROJECT_NAME} ENABLE ${ENABLE_CLANG_TIDY} )
42
- target_code_coverage (${PROJECT_NAME} ALL ENABLE ${ENABLE_CODE_COVERAGE} )
42
+ target_code_coverage (
43
+ ${PROJECT_NAME}
44
+ PRIVATE
45
+ ALL
46
+ ENABLE ${ENABLE_CODE_COVERAGE} )
43
47
44
48
# Build examples
45
49
add_subdirectory (examples )
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ target_compile_definitions(${PROJECT_NAME}_plugin_loader_unit PRIVATE PLUGIN_DIR
13
13
PLUGINS= "${PROJECT_NAME} _test_plugin_multiply" )
14
14
target_clang_tidy (${PROJECT_NAME} _plugin_loader_unit ENABLE ${ENABLE_CLANG_TIDY} )
15
15
target_cxx_version (${PROJECT_NAME} _plugin_loader_unit PUBLIC VERSION 17 )
16
- target_code_coverage (${PROJECT_NAME} _plugin_loader_unit ALL ENABLE ${ENABLE_CODE_COVERAGE} )
16
+ target_code_coverage (
17
+ ${PROJECT_NAME} _plugin_loader_unit
18
+ PRIVATE
19
+ ALL
20
+ ENABLE ${ENABLE_CODE_COVERAGE} )
17
21
add_gtest_discover_tests (${PROJECT_NAME} _plugin_loader_unit )
18
22
add_dependencies (${PROJECT_NAME} _plugin_loader_unit ${PROJECT_NAME} )
19
23
add_dependencies (run_tests ${PROJECT_NAME} _plugin_loader_unit )
@@ -28,7 +32,11 @@ target_link_libraries(
28
32
target_compile_definitions (${PROJECT_NAME} _plugin_loader_anchor_unit PRIVATE ${COMPILE_DEFINITIONS} )
29
33
target_clang_tidy (${PROJECT_NAME} _plugin_loader_anchor_unit ENABLE ${ENABLE_CLANG_TIDY} )
30
34
target_cxx_version (${PROJECT_NAME} _plugin_loader_anchor_unit PUBLIC VERSION 17 )
31
- target_code_coverage (${PROJECT_NAME} _plugin_loader_anchor_unit ALL ENABLE ${ENABLE_CODE_COVERAGE} )
35
+ target_code_coverage (
36
+ ${PROJECT_NAME} _plugin_loader_anchor_unit
37
+ PRIVATE
38
+ ALL
39
+ ENABLE ${ENABLE_CODE_COVERAGE} )
32
40
add_gtest_discover_tests (${PROJECT_NAME} _plugin_loader_anchor_unit )
33
41
add_dependencies (${PROJECT_NAME} _plugin_loader_anchor_unit ${PROJECT_NAME} )
34
42
add_dependencies (run_tests ${PROJECT_NAME} _plugin_loader_anchor_unit )
You can’t perform that action at this time.
0 commit comments