Skip to content

Commit a2b1fd7

Browse files
committed
fix not including the header
1 parent 3d5d76e commit a2b1fd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

offload/plugins-nextgen/common/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ endif()
2323

2424
# Include the RPC server from the `libc` project if availible.
2525
include(FindLibcCommonUtils)
26+
target_link_libraries(PluginCommon PRIVATE llvm-libc-common-utilities)
2627
if(TARGET llvmlibc_rpc_server AND ${LIBOMPTARGET_GPU_LIBC_SUPPORT})
27-
target_link_libraries(PluginCommon PRIVATE llvmlibc_rpc_server llvm-libc-common-utilities)
28+
target_link_libraries(PluginCommon PRIVATE llvmlibc_rpc_server)
2829
target_compile_definitions(PluginCommon PRIVATE LIBOMPTARGET_RPC_SUPPORT)
2930
elseif(${LIBOMPTARGET_GPU_LIBC_SUPPORT})
3031
find_library(llvmlibc_rpc_server NAMES llvmlibc_rpc_server
3132
PATHS ${LIBOMPTARGET_LLVM_LIBRARY_DIR} NO_DEFAULT_PATH)
3233
if(llvmlibc_rpc_server)
33-
target_link_libraries(PluginCommon PRIVATE ${llvmlibc_rpc_server} llvm-libc-common-utilities)
34+
target_link_libraries(PluginCommon PRIVATE ${llvmlibc_rpc_server})
3435
target_compile_definitions(PluginCommon PRIVATE LIBOMPTARGET_RPC_SUPPORT)
3536
endif()
3637
endif()

0 commit comments

Comments
 (0)