From 277b1f496e92cf1332709374c464ce5c2f3f4905 Mon Sep 17 00:00:00 2001 From: Olivier Stasse Date: Sun, 31 Mar 2024 12:41:50 +0200 Subject: [PATCH 1/2] Add stdexcept as an include in example.cpp Fix https://github.com/open-dynamic-robot-initiative/master-board/issues/153 --- sdk/master_board_sdk/example/example.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/master_board_sdk/example/example.cpp b/sdk/master_board_sdk/example/example.cpp index 8f0fcf68..35501c39 100644 --- a/sdk/master_board_sdk/example/example.cpp +++ b/sdk/master_board_sdk/example/example.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "master_board_sdk/master_board_interface.h" From 9571ca267a2109da614b6527a3934f5ba46e69a7 Mon Sep 17 00:00:00 2001 From: Olivier Stasse Date: Tue, 2 Apr 2024 06:45:53 +0200 Subject: [PATCH 2/2] [pre-commit] Fix CMakeLists.txt --- sdk/master_board_sdk/CMakeLists.txt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sdk/master_board_sdk/CMakeLists.txt b/sdk/master_board_sdk/CMakeLists.txt index e4fb21ab..2bd21efd 100644 --- a/sdk/master_board_sdk/CMakeLists.txt +++ b/sdk/master_board_sdk/CMakeLists.txt @@ -27,7 +27,6 @@ if(APPLE) CACHE BOOL "Build the python binding") endif() - option(BUILD_PYTHON_INTERFACE "Build the python binding" ON) option(PYTHON_STANDARD_LAYOUT "Enable standard Python package layout" ON) option(PYTHON_DEB_LAYOUT "Enable Debian-style Python package layout" OFF) @@ -57,7 +56,6 @@ check_minimal_cxx_standard(11 ENFORCE) # --- DEPENDENCIES ----------------------------------- # ---------------------------------------------------- - # Set component to fetch from boost Get the python interface for the bindings if(BUILD_PYTHON_INTERFACE) findpython(REQUIRED) @@ -100,8 +98,7 @@ install( EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib) -install(FILES package.xml - DESTINATION share/${PROJECT_NAME}) +install(FILES package.xml DESTINATION share/${PROJECT_NAME}) # --- BINDINGS ----------------------------------------------------------------- if(BUILD_PYTHON_INTERFACE) @@ -135,14 +132,14 @@ endif(BUILD_PYTHON_INTERFACE) # --- CHECK EXAMPLES ----------------------------------------------------------- add_executable(master_board_example example/example.cpp) target_link_libraries(master_board_example ${PROJECT_NAME}) -set_target_properties(master_board_example PROPERTIES - INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") +set_target_properties(master_board_example + PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") install(TARGETS master_board_example DESTINATION bin) add_executable(master_board_example_pd example/example_pd.cpp) target_link_libraries(master_board_example_pd ${PROJECT_NAME}) -set_target_properties(master_board_example_pd PROPERTIES - INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") +set_target_properties(master_board_example_pd + PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") install(TARGETS master_board_example_pd DESTINATION bin) add_executable(master_board_example_imu_data_collection