Ractify the condition to include the results

Signed-off-by: Omar Shrit <omar@avontech.fr>
This commit is contained in:
Omar Shrit
2024-06-17 12:30:40 +02:00
parent 54645e454a
commit a7e90eb3e5
+3 -3
View File
@@ -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.")