diff --git a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt --- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt +++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt @@ -10,10 +10,12 @@ 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()