Use catkin to build a project with a different libboost version
I need to compile an old project written in C++ and based on libboost-1.65.1 with catkin under Ubuntu and ROS Melodic (and also ROS Noetic).
The problem is that ROS relies on newer libboost version, it should be 1.71.1, and so I get errors related to the use of deprecated functions (I cannot replace them since it is too complex).
Is there a way to tell catkin and cmake to use an older version of libboost for this specific project only? I have both the versions installed on my machine and I'm able to compile and build the project as a standard C++ program outside catkin.
Is this "old project" a ros package or not? The fact you could build it outside of
catkin_ws
strongly suggests it is not a ros package.It is not a ros package, I'm trying to add ros libraries and move it under catkin. I'm getting errors related to the boost libraries when I run catkin_make