From e033dcd649585791785f750e2d406849976d708d Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Tue, 27 Feb 2018 10:14:13 -0800 Subject: [gdal] Add early checks for incompatible target settings --- ports/gdal/portfile.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ports/gdal/portfile.cmake b/ports/gdal/portfile.cmake index 9bfb92362..5ee981d6c 100644 --- a/ports/gdal/portfile.cmake +++ b/ports/gdal/portfile.cmake @@ -2,6 +2,12 @@ if (TRIPLET_SYSTEM_ARCH MATCHES "arm") message(FATAL_ERROR " ARM is currently not supported.") endif() +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + message(FATAL_ERROR "GDAL's nmake buildsystem does not support building static libraries") +elseif(VCPKG_CRT_LINKAGE STREQUAL "static") + message(FATAL_ERROR "GDAL's nmake buildsystem does not support static crt linkage") +endif() + include(vcpkg_common_functions) vcpkg_download_distfile(ARCHIVE -- cgit v1.2.3