From 9010f4a3bd9076b6df6a38c65d47a8b567b3db5e Mon Sep 17 00:00:00 2001 From: Shreyas Atre Date: Sun, 10 Mar 2024 22:20:30 -0500 Subject: [PATCH] Compiler Dynamic Library Manager test only if Clang-repl is used Signed-off-by: Shreyas Atre --- unittests/CppInterOp/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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