Add libxar to LLVM_SYSTEM_LIBS if available

This should fix PR27855. We have some terrible hacks in the CMake to add linking SYSTEM_LIBS to all tools. I think we need a better way to do this in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Bieneman 2016-05-24 20:19:05 +00:00
parent 84e27c2068
commit 0658e94613

View File

@ -24,6 +24,9 @@ elseif( CMAKE_HOST_UNIX )
if( UNIX AND NOT (BEOS OR HAIKU) )
set(system_libs ${system_libs} m)
endif()
if(HAVE_LIBXAR)
list(APPEND system_libs ${XAR_LIB})
endif()
endif( MSVC OR MINGW )
add_llvm_library(LLVMSupport