From 53bb518ea482a5960577b151c11cc1297e5dea6d Mon Sep 17 00:00:00 2001 From: Adeel Mujahid <3840695+am11@users.noreply.github.com> Date: Wed, 15 Feb 2023 05:19:23 +0200 Subject: [PATCH] Simplify an error condition in tryrun.cmake (#82070) --- eng/native/tryrun.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/native/tryrun.cmake b/eng/native/tryrun.cmake index ed330fd25d432..489f709d50683 100644 --- a/eng/native/tryrun.cmake +++ b/eng/native/tryrun.cmake @@ -157,7 +157,7 @@ elseif(TARGET_ARCH_NAME MATCHES "^(armel|arm|armv6|arm64|loongarch64|riscv64|s39 set_cache_value(HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES_EXITCODE 0) endif() else() - message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only armel, arm, armv6, arm64, loongarch64, s390x, ppc64le and x86 are supported!") + message(FATAL_ERROR "Unsupported platform. OS: ${CMAKE_SYSTEM_NAME}, arch: ${TARGET_ARCH_NAME}") endif() if(TARGET_ARCH_NAME MATCHES "^(x86|s390x|armv6|loongarch64|riscv64|ppc64le)$")