Treat catkin_package() version mismatch as error
Hello everyone,
I wanted to know whether it is possible to treat a version mismatch in my catkin packages as an error. Right now I'm getting a warning like:
CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:213 (message):
catkin_package() version mismatch: the package.xml of 'my_package'
build_depends on 'my_lib >= 1.4.3', but 'my_lib
1.4.1' found
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
CMakeLists.txt:80 (catkin_package)
But it happens that I overlook this warning, so I want catkin to be more strict.
EDIT: To be more clear: I'm handling my versions in the package.xml using the 'version_gt' tags and similar. Adjusting the version in CMakeLists.txt -> find_package() is not an option for me.
Thanks for answers :)