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 79
79
- VSINSTALLDIR
80
80
- vswhere
81
81
- webp
82
+ - WMAIN
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ target_link_libraries(
28
28
${my_exe_LINKED_LIBRARIES} )
29
29
30
30
# 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 )
32
32
33
33
# use xml reporter if coverage is enabled
34
34
if (${ENABLE_COVERAGE} )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ target_link_libraries(
19
19
project_options
20
20
Catch2::Catch2 )
21
21
# 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 )
23
23
24
24
# use xml reporter if coverage is enabled
25
25
if (${ENABLE_COVERAGE} )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ target_link_libraries(
7
7
project_warnings
8
8
project_options
9
9
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 )
11
11
12
12
catch_discover_tests (my_header_lib_constexpr_tests ${COVERAGE_ARGS} )
13
13
@@ -21,7 +21,7 @@ target_link_libraries(
21
21
project_warnings
22
22
project_options
23
23
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 )
25
25
target_compile_definitions (my_header_lib_relaxed_constexpr_tests PRIVATE -DCATCH_CONFIG_RUNTIME_STATIC_REQUIRE )
26
26
27
27
catch_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(
19
19
project_options
20
20
Catch2::Catch2 )
21
21
# 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 )
23
23
24
24
# use xml reporter if coverage is enabled
25
25
if (${ENABLE_COVERAGE} )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ target_link_libraries(
7
7
project_warnings
8
8
project_options
9
9
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 )
11
11
12
12
catch_discover_tests (my_lib_constexpr_tests ${COVERAGE_ARGS} )
13
13
@@ -21,7 +21,7 @@ target_link_libraries(
21
21
project_warnings
22
22
project_options
23
23
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 )
25
25
target_compile_definitions (my_lib_relaxed_constexpr_tests PRIVATE -DCATCH_CONFIG_RUNTIME_STATIC_REQUIRE )
26
26
27
27
catch_discover_tests (my_lib_relaxed_constexpr_tests ${COVERAGE_ARGS} )
You can’t perform that action at this time.
0 commit comments