find_program does not do globbing expressions for its PATH argument.<br><br>Instead of:<br>SET(MATLAB_INSTALL_REPOSITORY /Applications/*/bin)<br><br>Try this:<br>SET(MATLAB_INSTALL_REPOSITORY /Applications/MATLAB_R2009b/bin /Applications/MATLAB_R2009a/bin)<br>
<br>There is a feature request about adding regexes or globbing expressions to the find_* commands. Perhaps you could find it in the bug tracker and add a note to it saying you'd like such a feature, too....<br><br><br>
HTH,<br>David<br><br><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 5:40 AM, <span dir="ltr"><<a href="mailto:ronan.le_boulch@irisa.fr">ronan.le_boulch@irisa.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I've got two versions of Matlab installed on my Leopard under :<br>
/Applications/MATLAB_R2009a<br>
/Applications/MATLAB_R2009b<br>
<br>
I'm using this syntax in order to find Matlab path directory and my problem is that Cmake always find the R2009a path. Is there a way to compel Cmake to find the latest version ?<br>
<br>
SET(MATLAB_INSTALL_REPOSITORY /Applications/*/bin)<br>
# Retrieve mexext install directory (in order to retrieve Matlab install directory)<br>
FIND_PROGRAM(MATLAB_MEXEXT mexext PATH ${MATLAB_INSTALL_REPOSITORY} NO_DEFAULT_PATH)<br>
<br>
Thanks a lot and best regards<br>
<br>
Ronan Le Boulch<div><div></div><div class="h5"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>