Hello, I would like to write some FindFoo.cmake files to find packages installed on different systems including Mac. I have noticed that homebrew install packages in a repertory whose name depends on the version of the package. For example, I have installed a scientific library called scotch, and it is now installed here:
/usr/local/Cellar/scotch/6.0.4_4 What is the best way to handle such a path in FindScotch.cmake? I have think about these ones: - looking for /usr/local/Cellar/scotch/${SCOTCH_VERSION} where SCOTCH_VERSION has to be provided by users; - force users to install a specific version of Scotch which is hardcoded in SCOTCH_VERSION variable. I think the latter option is better since there is no reason that any version of scotch will be compatible with my own code. Is there a better way? Best regards, Cédric
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake