1 add_llvm_library(LLVMSupport
10 circular_raw_ostream.cpp
15 CrashRecoveryContext.cpp
31 IntrusiveRefCntPtr.cpp
49 StreamableMemoryObject.cpp
54 StringRefMemoryObject.cpp
84 SearchForAddressOfSpecialSymbol.cpp
105 Windows/DynamicLibrary.inc
114 Windows/ThreadLocal.inc
115 Windows/TimeValue.inc
121 set(system_libs ${system_libs} imagehlp psapi shell32)
122 elseif( CMAKE_HOST_UNIX )
124 set(system_libs ${system_libs} rt)
127 set(system_libs ${system_libs} ${CMAKE_DL_LIBS})
129 if(LLVM_ENABLE_TERMINFO)
131 set(system_libs ${system_libs} ${TERMINFO_LIBS})
134 if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
135 set(system_libs ${system_libs} pthread)
137 if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ )
138 set(system_libs ${system_libs} z)
144 if(POLICY CMP0022 AND BUILD_SHARED_LIBS)
145 # FIXME: Should this be really PUBLIC?
146 target_link_libraries(LLVMSupport PUBLIC ${system_libs})
148 target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs})
151 set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")