diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-10-25 13:15:41 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-10-25 13:15:41 -0700 |
| commit | e45fb7498d4a373669bf8aaa26dea284bc31b7a5 (patch) | |
| tree | 640a7149d89793b0aeecc71890f41b2489224e53 | |
| parent | 0cbaaac8fc8ec97974e94a681ecf9be75238b41c (diff) | |
| download | vcpkg-e45fb7498d4a373669bf8aaa26dea284bc31b7a5.tar.gz vcpkg-e45fb7498d4a373669bf8aaa26dea284bc31b7a5.zip | |
[mpir] Improve error handling; allow dyn/dyn-rt or lib/lib-rt but not cross
| -rw-r--r-- | ports/mpir/portfile.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ports/mpir/portfile.cmake b/ports/mpir/portfile.cmake index 97f8898e5..cc5cab8b8 100644 --- a/ports/mpir/portfile.cmake +++ b/ports/mpir/portfile.cmake @@ -4,8 +4,10 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") message(FATAL_ERROR "MPIR currently can only be built for desktop") endif() -if(VCPKG_CRT_LINKAGE STREQUAL "static") - message(FATAL_ERROR "MPIR currently can only be built using the dynamic CRT") +if(VCPKG_CRT_LINKAGE STREQUAL "static" AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + message(FATAL_ERROR "MPIR currently can only be built using the dynamic CRT when building DLLs") +elseif(VCPKG_CRT_LINKAGE STREQUAL "dynamic" AND VCPKG_LIBRARY_LINKAGE STREQUAL "static") + message(FATAL_ERROR "MPIR currently can only be built using the static CRT when building LIBs") endif() set(MPIR_VERSION 3.0.0) |
