[gdal] Add early checks for incompatible target settings

This commit is contained in:
Robert Schumacher 2018-02-27 10:14:13 -08:00
parent 0c468df7c7
commit e033dcd649

View File

@ -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