File tree Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Expand file tree Collapse file tree 6 files changed +8
-7
lines changed 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