Skip to content
Snippets Groups Projects
Commit c0df839b authored by Christoph Pohl's avatar Christoph Pohl
Browse files

Fix compilation errors under GCC12

parent 3b1c2a89
No related branches found
No related tags found
No related merge requests found
......@@ -260,7 +260,7 @@ namespace armarx
armarx::armem::articulated_object::ArticulatedObject obj =
convert(*robot, armarx::DateTime::Now());
obj.instance = "0"; // we assume that there is only one object of a type
obj.instance = static_cast<std::string>("0"); // we assume that there is only one object of a type
ARMARX_DEBUG << "Publishing new state for object `" << name << "`, instance id: `"
<< obj.instance << "`";
......
......@@ -27,7 +27,7 @@ armarx_add_component(
HEADERS
ArticulatedObjectLocalizerDynamicSimulation.h
)
target_compile_options("${LIB_NAME}" PRIVATE -Wno-error=array-bounds)
# Add dependencies
#find_package(MyLib QUIET)
......@@ -51,7 +51,6 @@ armarx_add_component(
# Add unit tests
add_subdirectory(test)
# Generate the application
armarx_generate_and_add_component_executable(
# If your component is not defined in ::armarx, specify its namespace here:
......
......@@ -54,6 +54,7 @@ armarx_add_component("${SOURCES}" "${HEADERS}")
target_include_directories(Simulator PUBLIC ${SDFormat_INCLUDE_DIRS})
target_link_directories(Simulator PUBLIC ${SDFormat_LIBRARY_DIRS})
target_compile_options(Simulator PRIVATE -Wno-error=array-bounds)
if (MujocoX_FOUND)
target_compile_definitions(Simulator PUBLIC MUJOCO_PHYSICS_WORLD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment