RobWorkSim buildsystem fails to properly handle situation with Bullet installed but not explicitly enabled
See https://tek-marvin-6.sandbox.tek.sdu.dk:8083/job/robwork-defaults/56/console for more information, but basically it is
-- RobWorkSim: Bullet enabled and found.
-- BUILD_rwsim_bullet OFF : Disabled by default.
And then:
/usr/bin/ld: cannot find -lrwsim_bullet
collect2: error: ld returned 1 exit status
Because it tries to link with RobWorkSim bullet things, that is didn't build for some reason (which is the issue)
The solution should fit the following:
- The RobWorkSim Bullet things should be compiled by default when Bullet is found.
- If the user explicitly disables bullet, then it shouldn't be built (nor linked with).