[CMake] Ability to tell if it is a relative path

James Bigler jamesbigler at gmail.com
Tue Mar 10 18:42:52 EDT 2009


Is there a way to discover if a path is a relative path or not?

I need to make sure that all paths are absolute for a given application, and
I can be given either relative or absolute paths to files.  If I'm given a
relative path I want to prepend ${CMAKE_CURRENT_SOURCE_DIR} to make it
absolute, but if it's already absolute, I don't want to add anything.

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090310/db9cd06f/attachment.htm>


More information about the CMake mailing list