diff --git a/unittests/CppInterOp/CMakeLists.txt b/unittests/CppInterOp/CMakeLists.txt index 75dccf556..1d32fc8cf 100644 --- a/unittests/CppInterOp/CMakeLists.txt +++ b/unittests/CppInterOp/CMakeLists.txt @@ -22,7 +22,10 @@ export_executable_symbols(CppInterOpTests) unset(LLVM_LINK_COMPONENTS) -add_cppinterop_unittest(DynamicLibraryManagerTests DynamicLibraryManagerTest.cpp) +if(USE_REPL) + add_cppinterop_unittest(DynamicLibraryManagerTests DynamicLibraryManagerTest.cpp) +endif() + target_link_libraries(DynamicLibraryManagerTests PRIVATE clangCppInterOp