With mujoco 2.2.2 built from scratch find_package(mujoco REQUIRED) does not return any errors, but no mujoco properties get set and building mujoco_ros fails.
Edit: My mistake, this actually just ensures the find_package call fails and triggers setting the properties manually, which does work in this case. Is there any reason to keep the first line and check for mujoco_FOUND or is there a case when this fails to resolve the properties correctly?
With mujoco 2.2.2 built from scratch
find_package(mujoco REQUIRED)
does not return any errors, but no mujoco properties get set and building mujoco_ros fails.Edit: My mistake, this actually just ensures the find_package call fails and triggers setting the properties manually, which does work in this case. Is there any reason to keep the first line and check for
mujoco_FOUND
or is there a case when this fails to resolve the properties correctly?