From c412268327c90af9cc59591928a1e735fae4d289 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 6 Feb 2025 10:29:36 +0100 Subject: [PATCH] [flang] Use clang_target_link_libraries() for clang dependency This dependency is part of libclang-cpp, so it should use clang_target_link_libraries. --- flang/unittests/Frontend/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flang/unittests/Frontend/CMakeLists.txt b/flang/unittests/Frontend/CMakeLists.txt index 9177997f41f53..2e3e7cb596c58 100644 --- a/flang/unittests/Frontend/CMakeLists.txt +++ b/flang/unittests/Frontend/CMakeLists.txt @@ -12,7 +12,6 @@ add_flang_unittest(FlangFrontendTests target_link_libraries(FlangFrontendTests PRIVATE - clangBasic flangFrontend flangFrontendTool FortranLower @@ -22,6 +21,11 @@ target_link_libraries(FlangFrontendTests FortranEvaluate ) +clang_target_link_libraries(FlangFrontendTests + PRIVATE + clangBasic +) + mlir_target_link_libraries(FlangFrontendTests PRIVATE MLIRIR