Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Can't use clcache from terminal when using VS #356

Open
Cascades opened this issue Jul 26, 2019 · 3 comments
Open

Can't use clcache from terminal when using VS #356

Cascades opened this issue Jul 26, 2019 · 3 comments

Comments

@Cascades
Copy link

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.

@benjaminfuchs
Copy link
Contributor

benjaminfuchs commented Jul 26, 2019

Something like ...

set CLCACHE_DIR=C:\clcache_cache && clcache -s

... could also do it. Passing as a parameter is currently not supported.

@Cascades
Copy link
Author

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.

@Cascades
Copy link
Author

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants