diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-02-27 10:50:47 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-02-27 10:50:47 -0800 |
| commit | a4ad384c931514c2603a5762baa65a9417273b9c (patch) | |
| tree | 1df9d61bfcc628ad724de35adf6e7beb10ff3477 | |
| parent | fb12a2287ecc53e6a311126327b977cb8b44f5ab (diff) | |
| download | vcpkg-a4ad384c931514c2603a5762baa65a9417273b9c.tar.gz vcpkg-a4ad384c931514c2603a5762baa65a9417273b9c.zip | |
[qpid-proton] Add early detection of invalid linkage settings
| -rw-r--r-- | ports/qpid-proton/portfile.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/qpid-proton/portfile.cmake b/ports/qpid-proton/portfile.cmake index 91be9aae3..65189c496 100644 --- a/ports/qpid-proton/portfile.cmake +++ b/ports/qpid-proton/portfile.cmake @@ -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 |
