3 # libuuid required for FOLDERID_Profile usage in lib/Support/Windows/Path.inc.
4 set(system_libs ${system_libs} psapi shell32 ole32 uuid)
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 set(system_libs ${system_libs} ${PTHREAD_LIB})
21 if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ )
22 set(system_libs ${system_libs} z)
24 if( UNIX AND NOT (BEOS OR HAIKU) )
25 set(system_libs ${system_libs} m)
27 endif( MSVC OR MINGW )
29 add_llvm_library(LLVMSupport
39 circular_raw_ostream.cpp
46 CrashRecoveryContext.cpp
62 IntrusiveRefCntPtr.cpp
76 RandomNumberGenerator.cpp
121 SearchForAddressOfSpecialSymbol.cpp
130 ADDITIONAL_HEADER_DIRS
133 ${LLVM_MAIN_INCLUDE_DIR}/llvm/ADT
134 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Support
136 LINK_LIBS ${system_libs}
139 set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")