mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 14:58:00 +08:00
Warn when unable to determine target architecture instead of error (#5188)
* Warn when unable to determine target architecture instead of error * Make the warning not appear multiple times * fix multiple warnings for real
This commit is contained in:
parent
62f294eeae
commit
ae991ee6ca
@ -50,7 +50,13 @@ else()
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH x64)
|
||||
else()
|
||||
message(FATAL_ERROR "Unable to determine target architecture.")
|
||||
if( _CMAKE_IN_TRY_COMPILE )
|
||||
message(STATUS "Unable to determine target architecture, continuing without vcpkg.")
|
||||
else()
|
||||
message(WARNING "Unable to determine target architecture, continuing without vcpkg.")
|
||||
endif()
|
||||
set(VCPKG_TOOLCHAIN ON)
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user