fix msvc static checks (#1829)

This commit is contained in:
Victor Vazquez 2021-03-10 07:07:01 +00:00 committed by GitHub
parent 2213991d52
commit 8bf8ebb53c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,10 @@ add_executable (
azure-core-global-context-test
global_context.cpp
)
if (MSVC)
# Disable gtest warnings for msvc
target_compile_options(azure-core-global-context-test PUBLIC /wd26495 /wd26812 /wd6326 /wd28204 /wd28020 /wd6330 /wd4389)
endif()
target_link_libraries(azure-core-global-context-test PRIVATE azure-core gtest_main)
# gtest_discover_tests will scan the test from azure-core-test and call add_test