mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
[CMake] LLVMSupport: Give system_libs PRIVATE scope when LLVMSupport is built as SHARED. Users of LLVMSupport won't inherit ${system_libs}.
unittests/SupporTests is another user of libpthreads. Apply LLVM_SYSTEM_LIBS for him explicitly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,3 +42,8 @@ add_llvm_unittest(SupportTests
|
||||
formatted_raw_ostream_test.cpp
|
||||
raw_ostream_test.cpp
|
||||
)
|
||||
|
||||
# ManagedStatic.cpp uses <pthread>.
|
||||
if(LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD)
|
||||
target_link_libraries(SupportTests pthread)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user