From a7e90eb3e5b793ccf0d58d38bce3baeca91e8229 Mon Sep 17 00:00:00 2001 From: Omar Shrit Date: Mon, 17 Jun 2024 12:30:40 +0200 Subject: [PATCH] Ractify the condition to include the results Signed-off-by: Omar Shrit --- CMake/CheckAtomic.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMake/CheckAtomic.cmake b/CMake/CheckAtomic.cmake index 2e62c5bdf0..145518d4a3 100644 --- a/CMake/CheckAtomic.cmake +++ b/CMake/CheckAtomic.cmake @@ -72,9 +72,9 @@ if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB) list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic") if (NOT CMAKE_CROSSCOMPILING) check_working_cxx_atomics64(HAVE_CXX_ATOMICS64_WITH_LIB) - endif() - if (NOT HAVE_CXX_ATOMICS64_WITH_LIB) - message(FATAL_ERROR "Host compiler must support std::atomic!") + if (NOT HAVE_CXX_ATOMICS64_WITH_LIB) + message(FATAL_ERROR "Host compiler must support std::atomic!") + endif() endif() else() message(FATAL_ERROR "Host compiler appears to require libatomic, but cannot find it.")