@@ -100,12 +100,10 @@ if (MSVC)
100100 target_compile_definitions (cpp17_intro_sync PRIVATE _WIN32_WINNT=0x0601 )
101101endif ()
102102
103+ if (NOT MSVC )
103104add_executable (cpp20_chat_room examples/cpp20_chat_room.cpp )
104105target_compile_features (cpp20_chat_room PUBLIC cxx_std_20 )
105106target_link_libraries (cpp20_chat_room common )
106- if (MSVC )
107- target_compile_options (cpp20_chat_room PRIVATE /bigobj )
108- target_compile_definitions (cpp20_chat_room PRIVATE _WIN32_WINNT=0x0601 )
109107endif ()
110108
111109add_executable (cpp20_containers examples/cpp20_containers.cpp )
@@ -117,12 +115,10 @@ if (MSVC)
117115 target_compile_definitions (cpp20_containers PRIVATE _WIN32_WINNT=0x0601 )
118116endif ()
119117
118+ if (NOT MSVC )
120119add_executable (cpp20_echo_server examples/cpp20_echo_server.cpp )
121120target_compile_features (cpp20_echo_server PUBLIC cxx_std_20 )
122121target_link_libraries (cpp20_echo_server common )
123- if (MSVC )
124- target_compile_options (cpp20_echo_server PRIVATE /bigobj )
125- target_compile_definitions (cpp20_echo_server PRIVATE _WIN32_WINNT=0x0601 )
126122endif ()
127123
128124add_executable (cpp20_resolve_with_sentinel examples/cpp20_resolve_with_sentinel.cpp )
@@ -143,12 +139,10 @@ if (MSVC)
143139 target_compile_definitions (cpp20_json_serialization PRIVATE _WIN32_WINNT=0x0601 )
144140endif ()
145141
142+ if (NOT MSVC )
146143add_executable (cpp20_subscriber examples/cpp20_subscriber.cpp )
147144target_compile_features (cpp20_subscriber PUBLIC cxx_std_20 )
148145target_link_libraries (cpp20_subscriber common )
149- if (MSVC )
150- target_compile_options (cpp20_subscriber PRIVATE /bigobj )
151- target_compile_definitions (cpp20_subscriber PRIVATE _WIN32_WINNT=0x0601 )
152146endif ()
153147
154148add_executable (cpp20_intro_tls examples/cpp20_intro_tls.cpp )
@@ -293,22 +287,18 @@ if (MSVC)
293287 target_compile_definitions (test_request PRIVATE _WIN32_WINNT=0x0601 )
294288endif ()
295289
290+ if (NOT MSVC )
296291add_executable (test_issue_50 tests/issue_50.cpp )
297292target_compile_features (test_issue_50 PUBLIC cxx_std_20 )
298293target_link_libraries (test_issue_50 common )
299294add_test (test_issue_50 test_issue_50 )
300- if (MSVC )
301- target_compile_options (test_issue_50 PRIVATE /bigobj )
302- target_compile_definitions (test_issue_50 PRIVATE _WIN32_WINNT=0x0601 )
303295endif ()
304296
297+ if (NOT MSVC )
305298add_executable (test_conn_check_health tests/conn_check_health.cpp )
306299target_compile_features (test_conn_check_health PUBLIC cxx_std_17 )
307300target_link_libraries (test_conn_check_health common )
308301add_test (test_conn_check_health test_conn_check_health )
309- if (MSVC )
310- target_compile_options (test_conn_check_health PRIVATE /bigobj )
311- target_compile_definitions (test_conn_check_health PRIVATE _WIN32_WINNT=0x0601 )
312302endif ()
313303
314304# Install
0 commit comments