From 96e44e7c8af4f0b016d7c59cf30db57cb342bb09 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Tue, 24 May 2016 20:19:05 +0000 Subject: 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. llvm-svn: 270605 --- llvm/lib/Support/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib') diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index 3d718e6a11c..3c8f78b2a00 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -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 -- cgit v1.2.3