diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-09-12 08:26:53 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-09-12 08:26:53 +0000 |
commit | 112f7a637b18b1ae1e409c25768f47b178632459 (patch) | |
tree | 2b90faf70bd79afa017c6b1df3dcbd15830f4f5a | |
parent | 411dea0e7206ccc8018261831225d898d069ff1d (diff) | |
download | external_llvm-112f7a637b18b1ae1e409c25768f47b178632459.zip external_llvm-112f7a637b18b1ae1e409c25768f47b178632459.tar.gz external_llvm-112f7a637b18b1ae1e409c25768f47b178632459.tar.bz2 |
Fixup for r190409: add dep on LZMA only if CMake is cross-compiling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190591 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | cmake/config-ix.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 30168c1..57725f8 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -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") |