Skip to content

Commit 60eb89f

Browse files
committed
[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.
1 parent 5159911 commit 60eb89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang-rt/cmake/modules/AddFlangRT.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function (add_flangrt_library name)
143143
endif ()
144144
if (build_shared)
145145
add_library("${name_shared}" SHARED ${extra_args} ${ARG_ADDITIONAL_HEADERS} ${ARG_UNPARSED_ARGUMENTS})
146-
target_link_libraries("${name_static}" PRIVATE flang-rt-libcxx-headers flang-rt-libc-headers flang-rt-libc-shared)
146+
target_link_libraries("${name_shared}" PRIVATE flang-rt-libcxx-headers flang-rt-libc-headers flang-rt-libc-shared)
147147
if (Threads_FOUND)
148148
target_link_libraries(${name_shared} PUBLIC Threads::Threads)
149149
endif ()

0 commit comments

Comments
 (0)