diff --git a/CMake/BuildGoogleClient.cmake b/CMake/BuildGoogleClient.cmake index f4d612f6cc6a07b1cdbcfcf46514d0d9c1a28a9e..16d9e918c518ca38e56c9c0a6654847127ac31cb 100644 --- a/CMake/BuildGoogleClient.cmake +++ b/CMake/BuildGoogleClient.cmake @@ -93,7 +93,9 @@ function(addGoogleCloudToTarget target) target_sources(${target} PRIVATE ${google-cloud-cpp_SOURCE_DIR}/google/cloud/terminate_handler.cc) endif() - if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")) + if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + set_source_files_properties(${google-cloud-cpp_SOURCE_DIR}/google/cloud/storage/internal/object_streambuf.cc PROPERTIES COMPILE_FLAGS /WX-) + else() set_source_files_properties(${google-cloud-cpp_SOURCE_DIR}/google/cloud/storage/internal/openssl_util.cc PROPERTIES COMPILE_FLAGS -Wno-pedantic) set_source_files_properties(${google-cloud-cpp_SOURCE_DIR}/google/cloud/storage/internal/bucket_requests.cc PROPERTIES COMPILE_FLAGS -Wno-pedantic) endif()