Commit 62bcddce authored by Dzmitry Poloyko (EPAM)'s avatar Dzmitry Poloyko (EPAM)
Browse files

GONRG-402 Fix for compile with clang on windows

parent c76aa5b5
......@@ -73,6 +73,10 @@ function(addGoogleCloudToTarget target)
${CMAKE_BINARY_DIR}/google-cloud-cpp/internal/build_info.cc
)
if (MSVC AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
target_sources(${target} PRIVATE ${google-cloud-cpp_SOURCE_DIR}/google/cloud/terminate_handler.cc)
endif()
if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC"))
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)
......
......@@ -22,21 +22,6 @@
#include <sstream>
#include <iomanip>
#ifdef WIN32
#ifdef __clang__
namespace google {
namespace cloud {
inline namespace GOOGLE_CLOUD_CPP_NS {
void Terminate(char const *)
{
abort();
}
}
}
}
#endif
#endif
namespace OpenVDS
{
static const std::string GOOGLEAPIS = "https://storage.googleapis.com";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment