[cmake-developers] Alternate if() without implicit variable expansion
David Cole
dlrdave at aol.com
Fri Sep 5 09:33:29 EDT 2014
> I was also thinking about setting up an alternative testing
> infrastructure parallel to RunCMake which runs cmake in script mode
> rather than performing configuration/generation.
This already exists in a form in the Tests/CMakeTests/*TestScript*
tests.
An example:
http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/CMakeTests/StringTestScript.cmake;h=a562e71d38ff7db040e567f0ef9b899c2101bc9f;hb=ff1fddb0bf40b8a7170d54ccdc9420c2d7190472
Any *TestScript* file also requires a "driving" *Test.cmake.in file and
an entry in Tests/CMakeTests/CMakeLists.txt, but the infrastructure is
there already. Actually, there are two infrastructures in that folder,
but this one is similar to the one you're proposing.
HTH,
David C.
More information about the cmake-developers
mailing list