Can't use clcache from terminal when using VS
So I am using CMake with VS, to avoid the error described in #342 , I am using this at the top of my CMakeLists.txt
set( ENV{CLCACHE_DIR} C:/clcache_cache )
Which works great!... except any calls to things like clcache -s in the terminal still point to the default, userspace, directory for the cache.
This will most likely be because CMake doesn't, and I believe can't export the env var for general use. Would it be possible to have clcache detect where it is currently actually using the cache, or to specify which cache dir to use like clcache -s -d C:/clcache_cache or something similar.
Something like ...
set CLCACHE_DIR=C:\clcache_cache && clcache -s
... could also do it. Passing as a parameter is currently not supported.
Thanks for the speedy reply @benjaminfuchs .
Yeah that's not too bad, but this will be used with a large development team and having a nicer way to specify which cache I want to inspect would feel better to me!
Or maybe if I run clcache from a cache directory it could detect that.
Also of course
set( ENV{CLCACHE_DIR} C:/clcache_cache )
didn't actually work... until i restarted my IDE.... being able to pass things about could be a good feature!