aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-27 10:14:13 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-27 10:14:30 -0800
commite033dcd649585791785f750e2d406849976d708d (patch)
tree23140c697d995636351d87a465c70b22c77cb154
parent0c468df7c75831cb61f7b2e833c3f42d86fa558c (diff)
downloadvcpkg-e033dcd649585791785f750e2d406849976d708d.tar.gz
vcpkg-e033dcd649585791785f750e2d406849976d708d.zip
[gdal] Add early checks for incompatible target settings
-rw-r--r--ports/gdal/portfile.cmake6
1 files changed, 6 insertions, 0 deletions
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