[CMake] disable global package caching mechanims?

Thomas Wolf thomas.wolf at vision.ee.ethz.ch
Wed Oct 5 10:22:27 EDT 2011


Hi,

is there a way to disable the global caching mechanism of cmake?
I mean the caching where cmake stores where a certain
software package can be /was found once successfully built.

I have a  closed standalone build (suitable for e.g. a buildserver and 
automatic testing) and want to make sure that it is using *exactly*
what it is building itself in that makefile run.

Debugging the makefiles, i have some problems because everytime 
something goes wrong, the machine finds the required libraries somewhere 
else (as they are present at several locations and cmake apparently 
cached that).

That behaviour completly defeats the purpose of having a monolithic 
build with a testable software release.

Is there a switch of some kind?


Regards,
Thomas


More information about the CMake mailing list