mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
[mpir] Improve error handling; allow dyn/dyn-rt or lib/lib-rt but not cross
This commit is contained in:
parent
0cbaaac8fc
commit
e45fb7498d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user