Can catkin/cmake detect the version of a dependency?
The idea would be to pass dependency version information through as a flag and conditionally compile different code paths.
The specific scenario is having packages which depend on a package which I'm in the process of pushing several upstream changes to. In my local workspace, I'd like to build the package against my version of the dependency, but still have it build correctly on the buildfarm against the dependency's upstream (and then ideally switch over to the new code path when upstream merges my changes).
A perhaps better alternative would be using SFINAE tricks to detect if the specific methods I want to take advantage of are present in the class.
Is there an official recommendation for this type of situation?