diff --git a/software/raspberry/superviseur-robot/CMakeLists.txt b/software/raspberry/superviseur-robot/CMakeLists.txt index 5e3032b..61ffd97 100644 --- a/software/raspberry/superviseur-robot/CMakeLists.txt +++ b/software/raspberry/superviseur-robot/CMakeLists.txt @@ -54,6 +54,7 @@ endif () foreach (lib IN LISTS Xenomai_libs) target_include_directories(main PRIVATE ${Xenomai_${lib}_INCLUDE_DIRS}) + target_link_options(main PRIVATE "LINKER:-R/usr/xenomai/lib") target_link_libraries(main ${Xenomai_${lib}_LIBRARY_DIRS} ${Xenomai_${lib}_LIBRARIES}) set_target_properties(main PROPERTIES LINK_FLAGS ${Xenomai_${lib}_LDFLAGS}) target_compile_definitions(main PRIVATE ${Xenomai_${lib}_DEFINITIONS})