[libcxx] r260531 - Rename CheckLibcxxAtomic.cmake variable result names so they don't clash with LLVM

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 11 07:52:52 PST 2016


Author: ericwf
Date: Thu Feb 11 09:52:52 2016
New Revision: 260531

URL: http://llvm.org/viewvc/llvm-project?rev=260531&view=rev
Log:
Rename CheckLibcxxAtomic.cmake variable result names so they don't clash with LLVM

Modified:
    libcxx/trunk/cmake/Modules/CheckLibcxxAtomic.cmake

Modified: libcxx/trunk/cmake/Modules/CheckLibcxxAtomic.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/cmake/Modules/CheckLibcxxAtomic.cmake?rev=260531&r1=260530&r2=260531&view=diff
==============================================================================
--- libcxx/trunk/cmake/Modules/CheckLibcxxAtomic.cmake (original)
+++ libcxx/trunk/cmake/Modules/CheckLibcxxAtomic.cmake Thu Feb 11 09:52:52 2016
@@ -31,8 +31,8 @@ if(NOT LIBCXX_HAVE_CXX_ATOMICS_WITHOUT_L
   check_library_exists(atomic __atomic_fetch_add_8 "" LIBCXX_HAS_ATOMIC_LIB)
   if(LIBCXX_HAS_ATOMIC_LIB)
     list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
-    check_cxx_atomics(HAVE_CXX_ATOMICS_WITH_LIB)
-    if (NOT HAVE_CXX_ATOMICS_WITH_LIB)
+    check_cxx_atomics(LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB)
+    if (NOT LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB)
       message(FATAL_ERROR "Host compiler must support std::atomic!")
     endif()
   else()




More information about the cfe-commits mailing list