4 set(system_libs ${system_libs} imagehlp psapi shell32)
5 elseif( CMAKE_HOST_UNIX )
7 set(system_libs ${system_libs} rt)
10 set(system_libs ${system_libs} ${CMAKE_DL_LIBS})
12 if(LLVM_ENABLE_TERMINFO)
14 set(system_libs ${system_libs} ${TERMINFO_LIBS})
17 if( LLVM_ENABLE_THREADS AND HAVE_LIBATOMIC )
18 set(system_libs ${system_libs} atomic)
20 if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
21 set(system_libs ${system_libs} pthread)
23 if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ )
24 set(system_libs ${system_libs} z)
26 set(system_libs ${system_libs} m)
30 add_llvm_library(LLVMSupport
39 circular_raw_ostream.cpp
44 CrashRecoveryContext.cpp
60 IntrusiveRefCntPtr.cpp
75 RandomNumberGenerator.cpp
83 StreamingMemoryObject.cpp
115 SearchForAddressOfSpecialSymbol.cpp
124 ADDITIONAL_HEADER_DIRS
127 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Support
129 LINK_LIBS ${system_libs}
132 set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")