diff --git a/cmake/CheckAtomic.cmake b/cmake/CheckAtomic.cmake index b8296a1c5..5f362dc4e 100644 --- a/cmake/CheckAtomic.cmake +++ b/cmake/CheckAtomic.cmake @@ -1,6 +1,7 @@ # atomic builtins are required for threading support. INCLUDE(CheckCXXSourceCompiles) +INCLUDE(CheckLibraryExists) # Sometimes linking against libatomic is required for atomic ops, if # the platform doesn't support lock-free atomics.