From 6e59b593572a0c514feadca1e40d8e1f5c57968a Mon Sep 17 00:00:00 2001 From: "C. Holzberger" Date: Tue, 3 Sep 2024 09:40:08 -0700 Subject: [PATCH] Fix issue #1238 make cmake find libatomic (#1406) Summary: this fixes cmake not finding libatomic at least on clearlinux 33470 Pull Request resolved: https://github.com/facebook/folly/pull/1406 Reviewed By: Gownta Differential Revision: D62074328 Pulled By: yfeldblum fbshipit-source-id: 6c08e875c2a29f3755f52430fe823f585ff248e4 --- CMake/folly-deps.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/CMake/folly-deps.cmake b/CMake/folly-deps.cmake index d51f1112886..d060982a920 100644 --- a/CMake/folly-deps.cmake +++ b/CMake/folly-deps.cmake @@ -196,6 +196,7 @@ check_cxx_source_compiles(" if(NOT FOLLY_CPP_ATOMIC_BUILTIN) list(APPEND CMAKE_REQUIRED_LIBRARIES atomic) list(APPEND FOLLY_LINK_LIBRARIES atomic) + set(ATOMIC_LIBRARY "atomic") check_cxx_source_compiles(" #include int main(int argc, char** argv) {