GET_FILENAME_COMPONENT(dir &quot;${MXADataModel_LIBRARY}&quot; PATH)<br>will put the PATH into the variable &#39;dir&#39;<br><br>HTH,<br>David<br><br><div><span class="gmail_quote">On 6/28/07, <b class="gmail_sendername">Mike Jackson
</b> &lt;<a href="mailto:imikejackson@gmail.com">imikejackson@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I need to get the Parent Directory for a library so I can add that<br>directory to the LINK_DIRECTORIES().<br><br>I have this so far:<br><br><br>FIND_LIBRARY(MXADataModel_LIBRARY &quot;MXADataModel&quot;<br>&nbsp;&nbsp; /usr/local/lib
<br>&nbsp;&nbsp; /usr/lib<br>&nbsp;&nbsp; &quot;${MXA_DIR}/lib&quot;<br>&nbsp;&nbsp; CACHE<br>)<br><br>Which will put the path to libMXADataModel.dylib&quot; into the variable,<br>How do I get its parent?<br><br><br>--<br>Mike Jackson<br>imikejackson &amp; gmail * com
<br><br><br><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake
</a><br></blockquote></div><br>