File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 CPACK_GENERATOR :
4242 - ZIP
4343
44- exclude :
45- # mingw is excluded because of the bugs that make it fail
46- - os : windows-2022
47- compiler : gcc
48-
4944 include :
5045 # Inject GCOV variable for gcc
5146 - compiler : gcc
6459 compiler : msvc
6560 CMAKE_GENERATOR : " Visual Studio 17 2022"
6661
62+ # To exclude a specific job from the matrix (e.g gcc on Windows), you can use this syntax.
63+ # exclude:
64+ # - os: windows-2022
65+ # compiler: gcc
66+
6767 steps :
6868 - uses : actions/checkout@v2
6969
Original file line number Diff line number Diff line change 7979 - VSINSTALLDIR
8080 - vswhere
8181 - webp
82+ - WMAIN
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ target_link_libraries(
2828 ${my_exe_LINKED_LIBRARIES} )
2929
3030# generate a main function for the test executable
31- target_compile_definitions (my_exe_helpers_tests PRIVATE CATCH_CONFIG_MAIN )
31+ target_compile_definitions (my_exe_helpers_tests PRIVATE CATCH_CONFIG_MAIN DO_NOT_USE_WMAIN )
3232
3333# use xml reporter if coverage is enabled
3434if (${ENABLE_COVERAGE} )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ target_link_libraries(
1919 project_options
2020 Catch2::Catch2 )
2121# generate a main function for the test executable
22- target_compile_definitions (my_header_lib_tests PRIVATE CATCH_CONFIG_MAIN )
22+ target_compile_definitions (my_header_lib_tests PRIVATE CATCH_CONFIG_MAIN DO_NOT_USE_WMAIN )
2323
2424# use xml reporter if coverage is enabled
2525if (${ENABLE_COVERAGE} )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ target_link_libraries(
77 project_warnings
88 project_options
99 Catch2::Catch2 )
10- target_compile_definitions (my_header_lib_constexpr_tests PRIVATE CATCH_CONFIG_MAIN )
10+ target_compile_definitions (my_header_lib_constexpr_tests PRIVATE CATCH_CONFIG_MAIN DO_NOT_USE_WMAIN )
1111
1212catch_discover_tests (my_header_lib_constexpr_tests ${COVERAGE_ARGS} )
1313
@@ -21,7 +21,7 @@ target_link_libraries(
2121 project_warnings
2222 project_options
2323 Catch2::Catch2 )
24- target_compile_definitions (my_header_lib_relaxed_constexpr_tests PRIVATE CATCH_CONFIG_MAIN )
24+ target_compile_definitions (my_header_lib_relaxed_constexpr_tests PRIVATE CATCH_CONFIG_MAIN DO_NOT_USE_WMAIN )
2525target_compile_definitions (my_header_lib_relaxed_constexpr_tests PRIVATE -DCATCH_CONFIG_RUNTIME_STATIC_REQUIRE )
2626
2727catch_discover_tests (my_header_lib_relaxed_constexpr_tests ${COVERAGE_ARGS} )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ target_link_libraries(
1919 project_options
2020 Catch2::Catch2 )
2121# generate a main function for the test executable
22- target_compile_definitions (my_lib_tests PRIVATE CATCH_CONFIG_MAIN )
22+ target_compile_definitions (my_lib_tests PRIVATE CATCH_CONFIG_MAIN DO_NOT_USE_WMAIN )
2323
2424# use xml reporter if coverage is enabled
2525if (${ENABLE_COVERAGE} )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ target_link_libraries(
77 project_warnings
88 project_options
99 Catch2::Catch2 )
10- target_compile_definitions (my_lib_constexpr_tests PRIVATE CATCH_CONFIG_MAIN )
10+ target_compile_definitions (my_lib_constexpr_tests PRIVATE CATCH_CONFIG_MAIN DO_NOT_USE_WMAIN )
1111
1212catch_discover_tests (my_lib_constexpr_tests ${COVERAGE_ARGS} )
1313
@@ -21,7 +21,7 @@ target_link_libraries(
2121 project_warnings
2222 project_options
2323 Catch2::Catch2 )
24- target_compile_definitions (my_lib_relaxed_constexpr_tests PRIVATE CATCH_CONFIG_MAIN )
24+ target_compile_definitions (my_lib_relaxed_constexpr_tests PRIVATE CATCH_CONFIG_MAIN DO_NOT_USE_WMAIN )
2525target_compile_definitions (my_lib_relaxed_constexpr_tests PRIVATE -DCATCH_CONFIG_RUNTIME_STATIC_REQUIRE )
2626
2727catch_discover_tests (my_lib_relaxed_constexpr_tests ${COVERAGE_ARGS} )
You can’t perform that action at this time.
0 commit comments