[CMake] Help re-generating CMakeCache
Ashwin Chandra
achandra at panologic.com
Thu Mar 25 02:08:07 EDT 2010
I am using a Linux makefile to pass an environment variable into cmake.
For example, I call
"MYVAR=test make -f Linux.mak debug-build"
Then inside my Linux.mak I issue a "cmake ... -DMYCMAKEVAR=$(MYVAR)".
This defintion works fine the first time I do a build and cmake
generates all the cmakecache and makefiles.
But after I build once, let's say I decide to change MYVAR to:
"MYVAR=test1234 make -f Linux.mak debug-build"
Then CMake doesn't seem to update the CMakeCache with this new value of
MYCMAKEVAR.
Something about building a second time when the cache has already been
created is causing this to fail.
Any Ideas??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100324/12ec72b4/attachment.htm>
More information about the CMake
mailing list