[PATCH] D40220: CMAKE: help CheckAtomic find check_library_exists

Martell Malone via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 18 16:21:20 PST 2017


martell created this revision.
Herald added a subscriber: mgorny.

lldb fails to build standalone on x86

    -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Failed
    CMake Error at /usr/lib/llvm4/lib/cmake/llvm/CheckAtomic.cmake:66 (check_library_exists):
      Unknown CMake command "check_library_exists".
    Call Stack (most recent call first):
      cmake/modules/LLDBStandalone.cmake:90 (include)
  CMakeLists.txt:3 (include)


Repository:
  rL LLVM

https://reviews.llvm.org/D40220

Files:
  cmake/modules/CheckAtomic.cmake


Index: cmake/modules/CheckAtomic.cmake
===================================================================
--- cmake/modules/CheckAtomic.cmake
+++ 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40220.123489.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171119/685556ff/attachment.bin>


More information about the llvm-commits mailing list