I am sure there is a simple command for this.
I installed opencv 2.4.3 manually in / usr / local.
Then I uninstalled it and installed OpenCV 2.4.5 from the archive community (I use Arch linux), which installs in / usr
Now when I try to use OpenCV in a cmake project, cmake returns the old paths from / usr / local.
I stumbled a bit and found that if I remove "CACHE" from the line: get_filename_component (OpenCV_CONFIG_PATH = "$ {CMAKE_CURRENT_LIST_FILE}" PATCH CACHE) in /usr/share/opencv/OpenCVConfig.cmake I get the correct path.
This points to my question. How to clear CMake cache? I'm talking about cmake’s internal cache, not the application’s cache, which can be removed by deleting CMakeCache.txt. Have a team? Or where is the cmake cache directory / file? I am sure there is a simple answer for this. I know how to set / disable the CACHE variable, but I don't know how to clear the full cache.
source share