Hi, I'm working on implementing a way to enforce library version control for library dependencies and I'm trying to figure out the best way to accomplish this.
For example, find_package(foo 1.2 required) Where version 1.2 or greater must be used. If cmake finds version 1.1 or less it will not use that library and print an error message. Reading various cmake modules it seems everyone has a different way of going about it. I see there is an implementation built into cmake but I cannot seem to quite grasp how it works. http://www.cmake.org/Wiki/CMake/Tutorials/Packaging I do have package config working and the library version is being defined there so when the package foo is found it prints the version found via package config but I'm not sure if relying on that is the best approach. Could someone point me in the right direction? thanks, Brandon
-- 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