diff options
-rw-r--r-- | llvm/lib/Support/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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 |