On Tue, Mar 10, 2009 at 3:54 PM, Tristan Carel <span dir="ltr">&lt;<a href="mailto:tristan.carel@gmail.com">tristan.carel@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, Mar 10, 2009 at 23:42, James Bigler &lt;<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>&gt; wrote:<br>
&gt; Is there a way to discover if a path is a relative path or not?<br>
&gt;<br>
&gt; I need to make sure that all paths are absolute for a given application, and<br>
&gt; I can be given either relative or absolute paths to files.  If I&#39;m given a<br>
&gt; relative path I want to prepend ${CMAKE_CURRENT_SOURCE_DIR} to make it<br>
&gt; absolute, but if it&#39;s already absolute, I don&#39;t want to add anything.<br>
<br>
</div></div>Hi James,<br>
<br>
by grep&quot;ping&quot; `absolute&#39; is the CMake documentation, you find:<br>
<br>
if(IS_ABSOLUTE path)<br>
True if the given path is an absolute path.<br>
<br>
Cheers<br>
<font color="#888888">--<br>
Tristan Carel</font></blockquote><div><br>That&#39;s rather embarrassing that I missed that.  I thought I search the docs for something like that.  Oh, well.  Thanks for the quick reply.<br><br>James <br></div></div><br>