forked from OSchip/llvm-project
[lldb] Conditionalize target_link_libraries on the target
Fixes "Cannot specify link libraries for target "lldb-target-fuzzer" which is not built by this project." Normally that's taken care of by add_llvm_fuzzer but we need target_link_libraries for liblldb and our utility library.
This commit is contained in:
parent
5161835d5a
commit
8f7db763ef
|
@ -9,9 +9,10 @@ add_llvm_fuzzer(lldb-target-fuzzer
|
|||
lldb-target-fuzzer.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(lldb-target-fuzzer
|
||||
PRIVATE
|
||||
liblldb
|
||||
lldbFuzzerUtils
|
||||
)
|
||||
|
||||
if(TARGET lldb-target-fuzzer)
|
||||
target_link_libraries(lldb-target-fuzzer
|
||||
PRIVATE
|
||||
liblldb
|
||||
lldbFuzzerUtils
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue