On 2014-01-14 18:47, Al Niessner wrote:
[snip]
Is it possible to have a dependent project use configuration from a
previously installed project?
- IF the dependent project creates a ProjectConfig.cmake, and
- IF said ProjectConfig.cmake sets the necessary variables referencing
where its versions of dependencies can be found, and
- IF the dependee project finds the dependent project before any other
dependencies
...then I think yes. The second is a little unusual though; is the
dependent project under your control? (You can also have e.g. a
'USE_DEPENDENCIES_FILE' for the dependent project if you don't want to
force that projects versions of its own dependencies on downstream
users. Which probably you shouldn't. Same general idea, though; the
dependent project has to provide the information and the dependee has to
use it.)
--
Matthew
--
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://www.cmake.org/mailman/listinfo/cmake