No subject


Mon Dec 15 09:51:36 EST 2008


ing is worth just to get around the configure problem.

Thanks,

- Ross

=20

> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]=20
> Sent: Wednesday, December 17, 2008 3:27 PM
> To: Bartlett, Roscoe A
> Cc: cmake at cmake.org
> Subject: Re: [CMake] Setting initial CMake cache in extended=20
> Ctest scripting
>=20
> Bartlett, Roscoe A wrote:
> > Hello,
> > =20
> > How do I set the initial cache when using extended Ctest=20
> scripting?  I=20
> > tried setting the variable CTEST_INITIAL_CACHE but it seems to be=20
> > getting ignored.  I just set:
> > =20
> >    SET(CTEST_CMAKE_GENERATOR "Unix Makefiles")
> > =20
> > along with CTEST_INITIAL_CACHE and I expected the=20
> CTEST_COFNIGURE(...)=20
> > command to just work.
> > =20
> > Are there some examples out there of real extended Ctest=20
> scripts that=20
> > I could look at?  I tend not to trust what gets written in=20
> untestable=20
> > documentation.
>=20
> We use something like this:
>=20
> # this is the initial cache to use for the binary tree, be=20
> careful to escape # any quotes inside of this string if you=20
> use it file(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "
> SITE:STRING=3D${hostname}
> BUILDNAME:STRING=3D${BUILDNAME}
> DART_ROOT:PATH=3D
> CVSCOMMAND:FILEPATH=3D${CTEST_UPDATE_COMMAND}
> DROP_METHOD:STRING=3Dhttp
> CTEST_TEST_CTEST:BOOL=3D1
> CVS_UPDATE_OPTIONS:STRING=3D${CTEST_UPDATE_OPTIONS}
> DART_TESTING_TIMEOUT:STRING=3D${CTEST_TEST_TIMEOUT}
> ")
>=20
> Here is a script:
> http://www.cdash.org/CDash/viewNotes.php?buildid=3D231851
>=20
> -Bill
>=20
> =



More information about the CMake mailing list