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

avoiding repeated cmake executions

parent a666bd7d
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