diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-02-27 10:14:13 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-02-27 10:14:30 -0800 |
| commit | e033dcd649585791785f750e2d406849976d708d (patch) | |
| tree | 23140c697d995636351d87a465c70b22c77cb154 | |
| parent | 0c468df7c75831cb61f7b2e833c3f42d86fa558c (diff) | |
| download | vcpkg-e033dcd649585791785f750e2d406849976d708d.tar.gz vcpkg-e033dcd649585791785f750e2d406849976d708d.zip | |
[gdal] Add early checks for incompatible target settings
| -rw-r--r-- | ports/gdal/portfile.cmake | 6 |
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 |
