aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/mpir/portfile.cmake6
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)