[Orc][examples] LLJITWithRemoteDebugger: fix CMake when utils are not built

This commit is contained in:
Mara Sophie Grosch 2021-06-27 13:52:04 +02:00 committed by Stefan Gränitz
parent 0f24ffcdfa
commit f45eee2706
1 changed files with 7 additions and 5 deletions

View File

@ -10,10 +10,12 @@ set(LLVM_LINK_COMPONENTS
nativecodegen
)
add_llvm_example(LLJITWithRemoteDebugging
LLJITWithRemoteDebugging.cpp
RemoteJITUtils.cpp
if ( LLVM_INCLUDE_UTILS )
add_llvm_example(LLJITWithRemoteDebugging
LLJITWithRemoteDebugging.cpp
RemoteJITUtils.cpp
DEPENDS
llvm-jitlink-executor
DEPENDS
llvm-jitlink-executor
)
endif()