diff --git a/software/raspberry/superviseur-robot/CMakeLists.txt b/software/raspberry/superviseur-robot/CMakeLists.txt index fbdd1c5..5e3032b 100644 --- a/software/raspberry/superviseur-robot/CMakeLists.txt +++ b/software/raspberry/superviseur-robot/CMakeLists.txt @@ -53,9 +53,7 @@ else () endif () foreach (lib IN LISTS Xenomai_libs) - message(STATUS ${lib}: ${Xenomai_${lib}_LDFLAGS}) - target_link_options(main PRIVATE ${Xenomai_${lib}_LDFLAGS}) - target_include_directories(main PRIVATE ${Xenomai_${lib}_INCLUDE_DIR}) + target_include_directories(main PRIVATE ${Xenomai_${lib}_INCLUDE_DIRS}) 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})