Skip to content

Use External ZOFU if present#34

Open
kprussing wants to merge 4 commits into
josephalevin:masterfrom
kprussing:feature/external-zofu
Open

Use External ZOFU if present#34
kprussing wants to merge 4 commits into
josephalevin:masterfrom
kprussing:feature/external-zofu

Conversation

@kprussing

Copy link
Copy Markdown
Contributor

A user may have a copy of ZOFU installed in a known location. This change set allows the user to specify ZOFU's installation details according to its find_package script and it will respect that. A copy of the find_package script is included for general usability since ZOFU does not install its find_pacakge script by default. This will fall back to fetching and building ZOFU if the user specified library is not available.

Closes #31

If the user has an installation of ZOFU, we should try to use that
instead of rebuilding.  This reduces the compilation phase to make it
easier on those who need to build the tests.
The FindZOFU.cmake from the ZOFU package expects the module path to be
set.  This is not a transient property of the library, and, therefore,
we must add the module directory to our target include lists.
The ZOFU library does not install its find_package implementation.
Instead, we need to include a copy to probe the system for the library.
This should be removed if ZOFU starts to distribute its find_package
script as a standard.
The comments about usage have changed.  We are now distributing the
find_package script which is the item that should be deprecated.
@kprussing

Copy link
Copy Markdown
Contributor Author

This is probably not a perfect solution. ZOFU itself does not install its find_package script so I had to include a duplicate. However, the find_package script can report false positives. It may be worth while to update ZOFU's cmake system, but that is a separate topic.

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

Successfully merging this pull request may close these issues.

Implement support for external Zofu

1 participant