diff --git a/src/posix/platform/vendor.cmake b/src/posix/platform/vendor.cmake index 7c132728a..ad33f1192 100644 --- a/src/posix/platform/vendor.cmake +++ b/src/posix/platform/vendor.cmake @@ -55,7 +55,7 @@ if(OT_POSIX_CONFIG_RCP_BUS STREQUAL "VENDOR") if (OT_POSIX_CONFIG_RCP_VENDOR_DEPS_PACKAGE) include(${OT_POSIX_CONFIG_RCP_VENDOR_DEPS_PACKAGE}) if (OT_POSIX_CONFIG_RCP_VENDOR_TARGET) - target_link_libraries(rcp-vendor-intf PRIVATE ${OT_POSIX_RCP_VENDOR_TARGET}) + target_link_libraries(rcp-vendor-intf PRIVATE ${OT_POSIX_CONFIG_RCP_VENDOR_TARGET}) endif() endif() endif() diff --git a/src/posix/platform/vendor_extension_example.cmake b/src/posix/platform/vendor_extension_example.cmake index c16d8f7fa..340dd8e0e 100644 --- a/src/posix/platform/vendor_extension_example.cmake +++ b/src/posix/platform/vendor_extension_example.cmake @@ -29,13 +29,13 @@ # This file provides an example on how to implement a RCP vendor extension. # Set name of the cmake target to link with rcp-vendor-intf -set(OT_POSIX_RCP_VENDOR_TARGET "vendor-lib") +set(OT_POSIX_CONFIG_RCP_VENDOR_TARGET "vendor-lib") # Create library target using source file "vendor_source.cpp" -add_library(${OT_POSIX_RCP_VENDOR_TARGET} vendor_source.cpp) +add_library(${OT_POSIX_CONFIG_RCP_VENDOR_TARGET} vendor_source.cpp) # Include header files located at "${VENDOR_INCLUDE_PATH}" -target_include_directories(${OT_POSIX_RCP_VENDOR_TARGET} +target_include_directories(${OT_POSIX_CONFIG_RCP_VENDOR_TARGET} PRIVATE ${VENDOR_INCLUDE_PATH} ) @@ -49,7 +49,7 @@ if (EXAMPLE_DEPS_ENABLE) find_package(ExampleRcpVendorDeps) if(ExampleRcpVendorDeps_FOUND) - target_link_libraries(${OT_POSIX_RCP_VENDOR_TARGET} + target_link_libraries(${OT_POSIX_CONFIG_RCP_VENDOR_TARGET} PRIVATE ${ExampleRcpVendorDeps::ExampleRcpVendorDeps} )