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

2009-03-10 Thread James Bigler
On Tue, Mar 10, 2009 at 3:54 PM, Tristan Carel wrote: > On Tue, Mar 10, 2009 at 23:42, James Bigler wrote: > > 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

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

2009-03-10 Thread Tristan Carel
On Tue, Mar 10, 2009 at 23:42, James Bigler wrote: > 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

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

2009-03-10 Thread James Bigler
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, b