X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FCMakeLists.txt;h=df5caf480994fc62e2dcd547dea8fca35d11cf44;hb=d2ea3168ae9117324582210007a18ffc31fb6586;hp=0b5f623d3a9f5a66b2171d50b5cb2794a8211b4d;hpb=043cc54d6c9dedaa6e5316fe5be02f97f16d5d2b;p=oota-llvm.git diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index 0b5f623d3a9..df5caf48099 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -3,13 +3,13 @@ add_llvm_library(LLVMSupport APInt.cpp APSInt.cpp ARMBuildAttrs.cpp + ARMWinEH.cpp Allocator.cpp BlockFrequency.cpp BranchProbability.cpp circular_raw_ostream.cpp CommandLine.cpp Compression.cpp - ConstantRange.cpp ConvertUTF.c ConvertUTFWrapper.cpp CrashRecoveryContext.cpp @@ -41,10 +41,13 @@ add_llvm_library(LLVMSupport MD5.cpp PluginLoader.cpp PrettyStackTrace.cpp + RandomNumberGenerator.cpp Regex.cpp + ScaledNumber.cpp SmallPtrSet.cpp SmallVector.cpp SourceMgr.cpp + SpecialCaseList.cpp Statistic.cpp StreamableMemoryObject.cpp StringExtras.cpp @@ -70,11 +73,9 @@ add_llvm_library(LLVMSupport # System Atomic.cpp - Disassembler.cpp DynamicLibrary.cpp Errno.cpp Host.cpp - IncludeFile.cpp Memory.cpp Mutex.cpp Path.cpp @@ -83,7 +84,6 @@ add_llvm_library(LLVMSupport RWMutex.cpp SearchForAddressOfSpecialSymbol.cpp Signals.cpp - system_error.cpp TargetRegistry.cpp ThreadLocal.cpp Threading.cpp @@ -100,7 +100,6 @@ add_llvm_library(LLVMSupport Unix/Program.inc Unix/RWMutex.inc Unix/Signals.inc - Unix/system_error.inc Unix/ThreadLocal.inc Unix/TimeValue.inc Unix/Watchdog.inc @@ -113,7 +112,6 @@ add_llvm_library(LLVMSupport Windows/Program.inc Windows/RWMutex.inc Windows/Signals.inc - Windows/system_error.inc Windows/ThreadLocal.inc Windows/TimeValue.inc Windows/Watchdog.inc @@ -142,5 +140,13 @@ if( NOT MSVC ) endif() endif( MINGW ) endif( NOT MSVC ) -target_link_libraries(LLVMSupport ${system_libs}) + + +if(POLICY CMP0022 AND BUILD_SHARED_LIBS) + # FIXME: Should this be really PUBLIC? + target_link_libraries(LLVMSupport PUBLIC ${system_libs}) +else() + target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs}) +endif() + set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")