diff --git a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt index 38d447bc91e3f5..558297b9e0b00a 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt +++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt @@ -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()