[CMake] Some newbie questions

Thomas Sharpless tksharpless at gmail.com
Sat Nov 3 09:36:25 EDT 2007


Hello cmake

I've just been introduced to cmake, and I LOVE it!  Congratulations on a
great idea, very well realized.

I've undertaken to build weekly snapshots of Hugin for Windows, and I need
to be able maintain and extend the cmake scripts that control the build.
Most of what I need is already clearly documented, but I do have a few
questions about the basics that don't seem to be.

1] How can a script delete variables, in particular from the cache?

2] What is the best way to get the pathname of the parent of a directory
whose pathname I already have?  Using the form ${have_path}/.. in the PATHS
argument to FIND_PATH did not work,  the output variable got set to
"<expanded_have_path>/.." which though it is a correct reference on Windows
and (I believe) Unix, does not work in a FIND_FILE command.

3] Does cmake run on a TCL interpreter, and if it does, can one escape into
a less restricted dialect of TCL and/or run TCL scripts from a file?

Thanks, Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071103/068e3106/attachment.htm


More information about the CMake mailing list