EVerest / everest-dev-environment

Useful tools for developing EVerest
Apache License 2.0
12 stars 15 forks source link

Add support for prevent_install option in dependencies.yaml #9

Closed hikinggrass closed 2 years ago

hikinggrass commented 2 years ago

When prevent_install is set to true the EXCLUDE_FROM_ALL option of CPM is set to YES, this prevents this dependency from installing targets which can be useful in some cases where the dependency does not provide an option to disable installing of targets. https://github.com/cpm-cmake/CPM.cmake/releases/tag/v0.29.0

hikinggrass commented 2 years ago

What's the idea behind this additional flag?

This flag makes it relatively easy to prevent cmake projects from installing targets when they don't give you an option to disable that. We depend on a few libraries that have such behavior and in some cases we may not want to pollute our install directory with their install artifacts. One example would be the excellent date library from Howard Hinnant that exhibits that behavior.