From 68c947b8c72875a918c4f97c1cccd87a6d6a5685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lind?= Date: Mon, 23 Nov 2020 13:39:08 +0100 Subject: [PATCH] Fix warning on VS2015 in gcp code --- CMake/BuildGoogleClient.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMake/BuildGoogleClient.cmake b/CMake/BuildGoogleClient.cmake index f4d612f6..16d9e918 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() -- GitLab