1add_llvm_library(LLVMSupport 2 APFloat.cpp 3 APInt.cpp 4 APSInt.cpp 5 ARMBuildAttrs.cpp 6 ARMWinEH.cpp 7 Allocator.cpp 8 BlockFrequency.cpp 9 BranchProbability.cpp 10 circular_raw_ostream.cpp 11 CommandLine.cpp 12 Compression.cpp 13 ConvertUTF.c 14 ConvertUTFWrapper.cpp 15 CrashRecoveryContext.cpp 16 DataExtractor.cpp 17 DataStream.cpp 18 Debug.cpp 19 DeltaAlgorithm.cpp 20 DAGDeltaAlgorithm.cpp 21 Dwarf.cpp 22 ErrorHandling.cpp 23 FileUtilities.cpp 24 FileOutputBuffer.cpp 25 FoldingSet.cpp 26 FormattedStream.cpp 27 GraphWriter.cpp 28 Hashing.cpp 29 IntEqClasses.cpp 30 IntervalMap.cpp 31 IntrusiveRefCntPtr.cpp 32 IsInf.cpp 33 IsNAN.cpp 34 LEB128.cpp 35 LineIterator.cpp 36 Locale.cpp 37 LockFileManager.cpp 38 ManagedStatic.cpp 39 MemoryBuffer.cpp 40 MemoryObject.cpp 41 MD5.cpp 42 PluginLoader.cpp 43 PrettyStackTrace.cpp 44 RandomNumberGenerator.cpp 45 Regex.cpp 46 ScaledNumber.cpp 47 SmallPtrSet.cpp 48 SmallVector.cpp 49 SourceMgr.cpp 50 SpecialCaseList.cpp 51 Statistic.cpp 52 StreamableMemoryObject.cpp 53 StringExtras.cpp 54 StringMap.cpp 55 StringPool.cpp 56 StringRef.cpp 57 StringRefMemoryObject.cpp 58 SystemUtils.cpp 59 Timer.cpp 60 ToolOutputFile.cpp 61 Triple.cpp 62 Twine.cpp 63 Unicode.cpp 64 YAMLParser.cpp 65 YAMLTraits.cpp 66 raw_os_ostream.cpp 67 raw_ostream.cpp 68 regcomp.c 69 regerror.c 70 regexec.c 71 regfree.c 72 regstrlcpy.c 73 74# System 75 Atomic.cpp 76 Disassembler.cpp 77 DynamicLibrary.cpp 78 Errno.cpp 79 Host.cpp 80 IncludeFile.cpp 81 Memory.cpp 82 Mutex.cpp 83 Path.cpp 84 Process.cpp 85 Program.cpp 86 RWMutex.cpp 87 SearchForAddressOfSpecialSymbol.cpp 88 Signals.cpp 89 TargetRegistry.cpp 90 ThreadLocal.cpp 91 Threading.cpp 92 TimeValue.cpp 93 Valgrind.cpp 94 Watchdog.cpp 95 96 ADDITIONAL_HEADERS 97 Unix/Host.inc 98 Unix/Memory.inc 99 Unix/Mutex.inc 100 Unix/Path.inc 101 Unix/Process.inc 102 Unix/Program.inc 103 Unix/RWMutex.inc 104 Unix/Signals.inc 105 Unix/ThreadLocal.inc 106 Unix/TimeValue.inc 107 Unix/Watchdog.inc 108 Windows/DynamicLibrary.inc 109 Windows/Host.inc 110 Windows/Memory.inc 111 Windows/Mutex.inc 112 Windows/Path.inc 113 Windows/Process.inc 114 Windows/Program.inc 115 Windows/RWMutex.inc 116 Windows/Signals.inc 117 Windows/ThreadLocal.inc 118 Windows/TimeValue.inc 119 Windows/Watchdog.inc 120 ) 121set(system_libs) 122if( NOT MSVC ) 123 if( MINGW ) 124 set(system_libs ${system_libs} imagehlp psapi shell32) 125 elseif( CMAKE_HOST_UNIX ) 126 if( HAVE_LIBRT ) 127 set(system_libs ${system_libs} rt) 128 endif() 129 if( HAVE_LIBDL ) 130 set(system_libs ${system_libs} ${CMAKE_DL_LIBS}) 131 endif() 132 if(LLVM_ENABLE_TERMINFO) 133 if(HAVE_TERMINFO) 134 set(system_libs ${system_libs} ${TERMINFO_LIBS}) 135 endif() 136 endif() 137 if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD ) 138 set(system_libs ${system_libs} pthread) 139 endif() 140 if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ ) 141 set(system_libs ${system_libs} z) 142 endif() 143 endif( MINGW ) 144endif( NOT MSVC ) 145 146 147if(POLICY CMP0022 AND BUILD_SHARED_LIBS) 148 # FIXME: Should this be really PUBLIC? 149 target_link_libraries(LLVMSupport PUBLIC ${system_libs}) 150else() 151 target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs}) 152endif() 153 154set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}") 155