[libcxxabi] r236115 - Fix syntax error in CMake created when a variable is not defined.

Eric Fiselier eric at efcs.ca
Wed Apr 29 08:53:04 PDT 2015


Author: ericwf
Date: Wed Apr 29 10:53:03 2015
New Revision: 236115

URL: http://llvm.org/viewvc/llvm-project?rev=236115&view=rev
Log:
Fix syntax error in CMake created when a variable is not defined.

Modified:
    libcxxabi/trunk/CMakeLists.txt

Modified: libcxxabi/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/CMakeLists.txt?rev=236115&r1=236114&r2=236115&view=diff
==============================================================================
--- libcxxabi/trunk/CMakeLists.txt (original)
+++ libcxxabi/trunk/CMakeLists.txt Wed Apr 29 10:53:03 2015
@@ -281,7 +281,7 @@ if (MSVC)
 endif()
 
 # Define LIBCXXABI_USE_LLVM_UNWINDER for conditional compilation.
-if (LIBCXXABI_USE_LLVM_UNWINDER OR ${LLVM_NATIVE_ARCH} MATCHES ARM)
+if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM)
   add_definitions(-DLIBCXXABI_USE_LLVM_UNWINDER=1)
 endif()
 
@@ -300,7 +300,7 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LI
 #===============================================================================
 
 include_directories(include)
-if (LIBCXXABI_USE_LLVM_UNWINDER OR ${LLVM_NATIVE_ARCH} MATCHES ARM)
+if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM)
   include_directories(${LLVM_MAIN_SRC_DIR}/projects/libunwind/include)
   # TODO: libunwind does not place libunwind_ext.h into include, so we need to
   # reach into its source directory.  This is primarily for





More information about the cfe-commits mailing list