]> granicus.if.org Git - llvm/commitdiff
CMAKE: help CheckAtomic find check_library_exists
authorMartell Malone <martellmalone@gmail.com>
Sat, 2 Dec 2017 07:17:01 +0000 (07:17 +0000)
committerMartell Malone <martellmalone@gmail.com>
Sat, 2 Dec 2017 07:17:01 +0000 (07:17 +0000)
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

cmake/modules/CheckAtomic.cmake

index dcf021b8fddafa0e8afffa06795a9db72ee3ce91..866eed08936d9c78a3383ae183d3ab3f421c3b87 100644 (file)
@@ -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.