[CMake] CCACHE_DIR Environment Variable

David Lind davidklind at gmail.com
Thu Jan 19 13:00:48 EST 2017


I am porting existing makefiles to cmake. One of the key features of these makefiles is setting the CCACHE_DIR environment variable based upon the tool chain selected.

I have TC_<toolchain>.cmake files created. Ideally, I would add a line to these files to set the CCACHE_DIR. But, CMake doesn’t have the ability to set environment variables during the build step. So, I’m stuck.

Has anyone encountered this kind of situation?

—Dave


More information about the CMake mailing list