mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-01 13:37:55 +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")
|
message(FATAL_ERROR "MPIR currently can only be built for desktop")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
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")
|
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()
|
endif()
|
||||||
|
|
||||||
set(MPIR_VERSION 3.0.0)
|
set(MPIR_VERSION 3.0.0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user