From abacdf94a608482e84002e279bbdb63d588cd504 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:05:08 -0800 Subject: [PATCH] Automated fix for refs/heads/master (#35562) PanCakes to the rescue! We noticed that our 'sanity' test was going to fail, but we think we can fix that automatically, so we put together this PR to do just that! If you'd like to opt-out of these PR's, add yourself to NO_AUTOFIX_USERS in .github/workflows/pr-auto-fix.yaml Closes #35562 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35562 from grpc:create-pull-request/patch-fbd47fd 571581e637b57576c5b99a23e1d17f543bc80631 PiperOrigin-RevId: 598913968 --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8bfd7453498..7c054dedf75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16562,6 +16562,15 @@ if(gRPC_BUILD_TESTS) add_executable(http2_settings_test test/core/transport/chttp2/http2_settings_test.cc ) +if(WIN32 AND MSVC) + if(BUILD_SHARED_LIBS) + target_compile_definitions(http2_settings_test + PRIVATE + "GPR_DLL_IMPORTS" + "GRPC_DLL_IMPORTS" + ) + endif() +endif() target_compile_features(http2_settings_test PUBLIC cxx_std_14) target_include_directories(http2_settings_test PRIVATE