catkin clean does not clean cache for extend
Hello all.
I'm on Ubuntu 18.04, running ROS Melodic.
Here is what I did:
In the terminal, I go to the location of my working space, where my current project, let us call it myRosProject, is located. I then build it with the command:
catkin build myRosProject
after it is completed successfully, I run the command:
catkin config
I get the following warning:
WARNING: Your current environment's CMAKE_PREFIX_PATH is different from the cached CMAKE_PREFIX_PATH used the last time this workspace was built.
If you want to use a different CMAKE_PREFIX_PATH you should call catkin clean to remove all references to the previous CMAKE_PREFIX_PATH.
Indeed. The output of catkin config
, in the field Extending, is different from what is in my system variable $CMAKE_PREFIX_PATH. I should note here, that after Extending there is in green letters the text [cached].
I then proceed to run catkin clean
. After that, I build my project again (with the same command as above) and everything is done correctly. However, when I run catkin config
again, I get the same warning.
So it seems that catkin clean
did not do anything. I want my project to use the content of $CMAKE_PREFIX_PATH in the Extending field but I can't make it work. It continues to get the path from some cached memory, which I have no idea where it is located. Any ideas?