diff --git a/src/bsp/pc-rtems/build_options.cmake b/src/bsp/pc-rtems/build_options.cmake index 136857ac1..909fe8b7e 100644 --- a/src/bsp/pc-rtems/build_options.cmake +++ b/src/bsp/pc-rtems/build_options.cmake @@ -5,13 +5,13 @@ ########################################################################## # Link the RTEMS BSP with the "rtemscpu" system library +target_link_libraries(osal_bsp + rtemscpu +) + +# Add the networking library for RTEMS 6+ if(CMAKE_SYSTEM_VERSION GREATER 5) target_link_libraries(osal_bsp - rtemscpu networking ) -else() - target_link_libraries(osal_bsp - rtemscpu - ) endif(CMAKE_SYSTEM_VERSION GREATER 5)