On 12/28/2015 07:31 AM, mikkoi wrote: > A CMake project depends on the header only library STLSoft > (http://www.stlsoft.org/). > We rely on the developer having STLSoft installed or "installed" > (pointed to by an environment variable) on his system for compilation.
Ideally packages should provide CMake packaging files as documented here: https://cmake.org/cmake/help/v3.4/manual/cmake-packages.7.html However, since header-only libraries tend to have no build system this may be a tough sell upstream. Find modules are the fallback approach. > To make sure the developer's version is high enough, I created this > FindSTLSoft.cmake file. > > Can someone read it through, and say if there are any errors or > antipatterns. > I'm still learning CMake, so I might have made mistakes. Please read through the cmake-developer(7) manual section on modules and find modules: https://cmake.org/cmake/help/v3.4/manual/cmake-developer.7.html#modules -Brad -- 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-developers