[llvm] r190591 - Fixup for r190409: add dep on LZMA only if CMake is cross-compiling

Alexey Samsonov samsonov at google.com
Thu Sep 12 01:26:53 PDT 2013


Author: samsonov
Date: Thu Sep 12 03:26:53 2013
New Revision: 190591

URL: http://llvm.org/viewvc/llvm-project?rev=190591&view=rev
Log:
Fixup for r190409: add dep on LZMA only if CMake is cross-compiling

Modified:
    llvm/trunk/cmake/config-ix.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=190591&r1=190590&r2=190591&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Thu Sep 12 03:26:53 2013
@@ -308,7 +308,7 @@ if (LIBXML2_FOUND)
   # be checked by CMake, breaking native compilation.
   # Since this is only pertinent to cross-compilations, and there's no way CMake
   # can check for every foreign library on every OS, we add the dep and warn the dev.
-  if ( DEFINED CMAKE_CROSSCOMPILING )
+  if ( CMAKE_CROSSCOMPILING )
     if (NOT PC_LIBXML_VERSION VERSION_LESS "2.8.0")
       message(STATUS "Adding LZMA as a dep to XML2 for cross-compilation, make sure liblzma.a is available.")
       set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} "-llzma")





More information about the llvm-commits mailing list