Skip to content

Commit

Permalink
Fix issue #1238 make cmake find libatomic (#1406)
Browse files Browse the repository at this point in the history
Summary:
this fixes cmake not finding libatomic at least on clearlinux 33470

Pull Request resolved: #1406

Reviewed By: Gownta

Differential Revision: D62074328

Pulled By: yfeldblum

fbshipit-source-id: 6c08e875c2a29f3755f52430fe823f585ff248e4
  • Loading branch information
cHolzberger authored and facebook-github-bot committed Sep 3, 2024
1 parent 0f698c3 commit 6e59b59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMake/folly-deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 <atomic>
int main(int argc, char** argv) {
Expand Down

0 comments on commit 6e59b59

Please sign in to comment.