vcpkg/ports/azure-storage-cpp/static-builds.patch
2017-04-07 15:38:04 -07:00

14 lines
534 B
Diff

diff --git a/Microsoft.WindowsAzure.Storage/CMakeLists.txt b/Microsoft.WindowsAzure.Storage/CMakeLists.txt
index 8d1c47e..3b4d1c0 100644
--- a/Microsoft.WindowsAzure.Storage/CMakeLists.txt
+++ b/Microsoft.WindowsAzure.Storage/CMakeLists.txt
@@ -108,6 +108,8 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/MP)
if(BUILD_SHARED_LIBS)
add_definitions(-DWASTORAGE_DLL -D_USRDLL)
+ else()
+ add_definitions(-D_NO_WASTORAGE_API)
endif()
else()
message("-- Unknown compiler, success is doubtful.")