Skip to content
Snippets Groups Projects
Commit 9c03603d authored by Fabian Reister's avatar Fabian Reister
Browse files

Merge branch 'fix/virtual-robot-reader-performance-armarx-datapath' into 'master'

avoiding repeated cmake executions

See merge request !296
parents a666bd7d 893c021f
No related branches found
No related tags found
1 merge request!296Avoiding repeated CMake executions
......@@ -38,7 +38,7 @@ namespace armarx::armem::robot_state
bool
VirtualRobotReader::synchronizeRobot(VirtualRobot::Robot& robot, const armem::Time& timestamp)
{
const auto packages = armarx::CMakePackageFinder::FindAllArmarXSourcePackages();
const static auto packages = armarx::CMakePackageFinder::FindAllArmarXSourcePackages();
const auto package = armarx::ArmarXDataPath::getProject(packages, robot.getFilename());
const robot::RobotDescription robotDescription{
......
......@@ -47,7 +47,7 @@ namespace armarx::armem::robot_state
PackagePath
resolvePackagePath(const std::string& filename)
{
const auto packages = armarx::CMakePackageFinder::FindAllArmarXSourcePackages();
const static auto packages = armarx::CMakePackageFinder::FindAllArmarXSourcePackages();
PackagePath packagePath(armarx::ArmarXDataPath::getProject(packages, filename), filename);
return packagePath;
}
......
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