Index: llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt =================================================================== --- llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeLists.txt +++ 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()