From 52e40e67ca8fa620f23650f5a854974d5485a018 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 26 Oct 2016 17:10:14 -0700 Subject: [PATCH] [mongo-driver] Mark as not static ready --- ports/mongo-c-driver/portfile.cmake | 3 +++ ports/mongo-cxx-driver/portfile.cmake | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ports/mongo-c-driver/portfile.cmake b/ports/mongo-c-driver/portfile.cmake index df84008e4..27b70b7f7 100644 --- a/ports/mongo-c-driver/portfile.cmake +++ b/ports/mongo-c-driver/portfile.cmake @@ -1,4 +1,7 @@ include(${CMAKE_TRIPLET_FILE}) +if (VCPKG_LIBRARY_LINKAGE STREQUAL static) + message(FATAL_ERROR "Static building not supported yet. Portfile not modified and blocked by libbson.") +endif() include(vcpkg_common_functions) set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-c-driver-1.4.2) diff --git a/ports/mongo-cxx-driver/portfile.cmake b/ports/mongo-cxx-driver/portfile.cmake index fa29b14a3..867275aea 100644 --- a/ports/mongo-cxx-driver/portfile.cmake +++ b/ports/mongo-cxx-driver/portfile.cmake @@ -1,4 +1,7 @@ include(${CMAKE_TRIPLET_FILE}) +if (VCPKG_LIBRARY_LINKAGE STREQUAL static) + message(FATAL_ERROR "Static building not supported yet. Portfile not modified and blocked by libbson.") +endif() include(vcpkg_common_functions) set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-cxx-driver-r3.0.2)