From 6242e8f7bd76b82a062ccf4146d44e571a189dbc Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sun, 23 Apr 2017 08:35:13 -0700 Subject: [xalan-c] Add check for static/static --- ports/xalan-c/CONTROL | 2 +- ports/xalan-c/portfile.cmake | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ports/xalan-c/CONTROL b/ports/xalan-c/CONTROL index 188c6bd44..5936fc2f5 100644 --- a/ports/xalan-c/CONTROL +++ b/ports/xalan-c/CONTROL @@ -1,4 +1,4 @@ Source: xalan-c -Version: 1.11 +Version: 1.11-1 Description: Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types Build-Depends: xerces-c diff --git a/ports/xalan-c/portfile.cmake b/ports/xalan-c/portfile.cmake index ac076475e..55dd9f143 100644 --- a/ports/xalan-c/portfile.cmake +++ b/ports/xalan-c/portfile.cmake @@ -10,6 +10,15 @@ # VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm) # +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + message(STATUS "Only DLL builds are currently supported.") + set(VCPKG_LIBRARY_LINKAGE "dynamic") +endif() + +if(VCPKG_CRT_LINKAGE STREQUAL "static") + message(FATAL_ERROR "Only dynamic linking against the CRT is currently supported.") +endif() + include(vcpkg_common_functions) set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/xalan-c-1.11) vcpkg_download_distfile(ARCHIVE -- cgit v1.2.3