Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conditional find_package() #183

Open
tclune opened this issue May 17, 2021 · 0 comments
Open

conditional find_package() #183

tclune opened this issue May 17, 2021 · 0 comments

Comments

@tclune
Copy link
Collaborator

tclune commented May 17, 2021

We now have a few instances where a package is only "mostly" required. E.g., pflogger now has a stub option.

A cmake macro tha wraps find_package() could perhaps make the logic more clear. It would take the same options as find_package() but with an additional argument that controls whether to invoke find_package()

esma_find_package(PFLOGGER REQUIRED IF ${BUILD_WITH_PFLOGGER})

Not 100% certain that this is worthwhile though. Comments appreciated.
@weiyuan-jiang @rmontuoro @mathomp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant