[CMake] Some newbie questions
Mike Jackson
imikejackson at gmail.com
Sat Nov 3 12:16:24 EDT 2007
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Nov 3, 2007, at 9:36 AM, Thomas Sharpless wrote:
> 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.
GET_FILENAME_COMPONENT(OUTPUT_VARIABLE ${SOME_PATH_TO_FILE} PATH)
>
> 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
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071103/0b64e459/attachment.htm
More information about the CMake
mailing list