From 60eb89f9fa0fd990c5cf2cc64d4202e3485d256e Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Tue, 25 Mar 2025 10:23:59 -0500 Subject: [PATCH] [flang-rt] Fix typo using `static` instead of `shared` Summary: I copied this from the static usage, replaced the shared on the dependency but not on the target. --- flang-rt/cmake/modules/AddFlangRT.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang-rt/cmake/modules/AddFlangRT.cmake b/flang-rt/cmake/modules/AddFlangRT.cmake index 8386aa6352d6..93a21277caff 100644 --- a/flang-rt/cmake/modules/AddFlangRT.cmake +++ b/flang-rt/cmake/modules/AddFlangRT.cmake @@ -143,7 +143,7 @@ function (add_flangrt_library name) endif () if (build_shared) add_library("${name_shared}" SHARED ${extra_args} ${ARG_ADDITIONAL_HEADERS} ${ARG_UNPARSED_ARGUMENTS}) - target_link_libraries("${name_static}" PRIVATE flang-rt-libcxx-headers flang-rt-libc-headers flang-rt-libc-shared) + target_link_libraries("${name_shared}" PRIVATE flang-rt-libcxx-headers flang-rt-libc-headers flang-rt-libc-shared) if (Threads_FOUND) target_link_libraries(${name_shared} PUBLIC Threads::Threads) endif ()