Closed aleksandergabriel closed 4 months ago
Some part of your CMakeLists.txt
got HAROS confused. This is likely a bug in the CMake parser HAROS is using, and not in your code. I have had a couple of issues with it before. It is outdated and in need of a replacement.
I can look into the issue and suggest a quick fix for it, but I need some more information.
Namely, I need to see which statement in the CMakeLists.txt
is confusing the parser.
Is this package public? If so, can you share it? If it is not public, let me know so that we can figure out a workaround.
catkin_lint contains a CMake parser (here). Might be worth a look?
Definitely. Another alternative I had noted down at the time was https://github.com/polysquare/cmake-ast. Both seem to have received commits recently, so it might just be a matter of selecting the simplest one to use.
Although the one in catkin_lint
feels like it might be more actively developed/maintained.
Package is private, but I see no reason which would block me to share CMakeLists with you. However I would still prefer to share it via some other private channel. However this is not really urgent and if you are planning to change parser in near future we can wait and then help with testing if needed.
After trying HAROS on some simple packages containing mostly message and service definitions I tried to run it on a bit larger package but got this crash:
I am new to HAROS so unfortunately I have no idea weather this is caused by HAROS or my code. As my code compiles I dont really know where to look for error.