Skip to content

Commit

Permalink
[gdal] Add early checks for incompatible target settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Feb 27, 2018
1 parent 0c468df commit e033dcd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ports/gdal/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e033dcd

Please sign in to comment.