Comment 2 for bug 772640

Revision history for this message
Scott R. Sideleau (scott.sideleau) wrote :

I backed up my modified version of FindMOOS.cmake and inserted this new version into my copy of goby-1.0.2b's source and was able to successfully build against my checked out copy of MOOS-IvP in /opt/moos-ivp.

I traced through the new FindMOOS.cmake and confirmed that it seems to cover all of the cases I outlined above, with the exception of the /usr/local/src directory. Upon further reflection, this is probably an unnecessary search location because users that are dropping source in here are most likely following through with a 'make install'; thus, the CMake find_library() and/or find_path() function(s) would correctly find what was being searched for in either /usr/local/include or /usr/local/lib, respectively.

Also, the use of an externally configurable MOOS_ROOT_DIR is a welcome addition to experienced CMake users, who would undoubtedly start to debug the initial configuration with ccmake (as I did before venturing through cmake_modules/ in search of the problem).

I think your proposed update to FindMOOS.cmake is a much cleaner solution overall.

Thanks for chasing this down.