mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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
This commit is contained in:
@@ -308,7 +308,7 @@ if (LIBXML2_FOUND)
|
|||||||
# be checked by CMake, breaking native compilation.
|
# be checked by CMake, breaking native compilation.
|
||||||
# Since this is only pertinent to cross-compilations, and there's no way CMake
|
# 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.
|
# 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")
|
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.")
|
message(STATUS "Adding LZMA as a dep to XML2 for cross-compilation, make sure liblzma.a is available.")
|
||||||
set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} "-llzma")
|
set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} "-llzma")
|
||||||
|
Reference in New Issue
Block a user