find_program does not do globbing expressions for its PATH argument. Instead of: SET(MATLAB_INSTALL_REPOSITORY /Applications/*/bin)
Try this: SET(MATLAB_INSTALL_REPOSITORY /Applications/MATLAB_R2009b/bin /Applications/MATLAB_R2009a/bin) 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.... HTH, David On Thu, Apr 22, 2010 at 5:40 AM, <[email protected]> wrote: > Hi, > > I've got two versions of Matlab installed on my Leopard under : > /Applications/MATLAB_R2009a > /Applications/MATLAB_R2009b > > 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 ? > > SET(MATLAB_INSTALL_REPOSITORY /Applications/*/bin) > # Retrieve mexext install directory (in order to retrieve Matlab > install directory) > FIND_PROGRAM(MATLAB_MEXEXT mexext PATH ${MATLAB_INSTALL_REPOSITORY} > NO_DEFAULT_PATH) > > Thanks a lot and best regards > > Ronan Le Boulch > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
