[qpid-proton] Add early detection of invalid linkage settings

This commit is contained in:
Robert Schumacher 2018-02-27 10:50:47 -08:00
parent fb12a2287e
commit a4ad384c93

View File

@ -1,3 +1,12 @@
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
message("qpid-proton does not support static linkage. Building dynamically.")
set(VCPKG_LIBRARY_LINKAGE "dynamic")
endif()
if(VCPKG_CRT_LINKAGE STREQUAL "static")
message(FATAL_ERROR "qpid-proton does not support static CRT linkage.")
endif()
include(vcpkg_common_functions)
# Use this throughout rather than literal string