summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMartell Malone <martellmalone@gmail.com>2017-12-02 07:17:01 +0000
committerMartell Malone <martellmalone@gmail.com>2017-12-02 07:17:01 +0000
commitabd7f8c4bd653b91bc30d34c92b84eeaba415c22 (patch)
tree54c55d68ce6b541639a5a4bef8c5c9f266dcedb2 /cmake
parent4ab42623aa9ed53700f66f0256685198ece88151 (diff)
CMAKE: help CheckAtomic find check_library_exists
lldb fails to build standalone on x86 -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Failed CMake Error at CheckAtomic.cmake:66 (check_library_exists): Unknown CMake command "check_library_exists". Call Stack (most recent call first): LLDBStandalone.cmake:90 (include) CMakeLists.txt:3 (include) Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D40220 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/CheckAtomic.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/CheckAtomic.cmake b/cmake/modules/CheckAtomic.cmake
index dcf021b8fdd..866eed08936 100644
--- a/cmake/modules/CheckAtomic.cmake
+++ b/cmake/modules/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.