File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 68
68
69
69
- name : Configure CMake build
70
70
run : |
71
- cmake -S . -B build -DBUILD_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug
71
+ cmake -S . -B build -DBUILD_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug -DBUILD_COMPILE_TESTS=0
72
72
73
73
- name : Cleanup CMake compiler check
74
74
run : |
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ endif()
50
50
51
51
52
52
option (BUILD_TESTS "Build tests" ON )
53
+ option (BUILD_COMPILE_TESTS "Build compile tests" ON )
53
54
if (BUILD_TESTS)
54
55
enable_testing ()
55
56
endif ()
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ package_add_test(test_state_machine
62
62
package_add_test(test_variant
63
63
test_variant.cc)
64
64
65
- # compilation tests
66
- expect_compile_failure(failure_surjection_duplicate_keys.cc)
67
- expect_compile_failure(failure_surjection_entries_not_pairs.cc)
68
- expect_compile_failure(failure_bijection_duplicate_values.cc)
65
+ if (BUILD_COMPILE_TESTS)
66
+ # compilation tests
67
+ expect_compile_failure(failure_surjection_duplicate_keys.cc)
68
+ expect_compile_failure(failure_surjection_entries_not_pairs.cc)
69
+ expect_compile_failure(failure_bijection_duplicate_values.cc)
70
+ endif ()
You can’t perform that action at this time.
0 commit comments