From 912278d22d497ce344e78cb128ba4930c2ee7f55 Mon Sep 17 00:00:00 2001 From: codicodi Date: Wed, 11 Jan 2017 21:36:21 +0100 Subject: [glib] check settings --- ports/glib/portfile.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ports/glib/portfile.cmake b/ports/glib/portfile.cmake index c835d8482..d1777de1d 100644 --- a/ports/glib/portfile.cmake +++ b/ports/glib/portfile.cmake @@ -1,3 +1,13 @@ + # Glib uses winapi functions not available in WindowsStore +if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore) + message(FATAL_ERROR "Error: UWP builds are currently not supported.") +endif() + +# Glib relies on DllMain +if (VCPKG_LIBRARY_LINKAGE STREQUAL static) + message(STATUS "Warning: Static building not supported. Building dynamic.") + set(VCPKG_LIBRARY_LINKAGE dynamic) +endif() include(vcpkg_common_functions) set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glib-2.50.2) -- cgit v1.2.3