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

Don't build util tests when HDF5_EXTERNALLY_CONFIGURED=ON #3781

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

Krzmbrzl
Copy link
Contributor

Fixes #3780

Comment on lines +4 to 6
if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
add_subdirectory (test)
endif ()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think one could also think of only building the tests if the utils are built in the first place. Building only the tests doesn't seem to make much sense 🤔 👀

Copy link
Contributor

@byrnHDF byrnHDF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should guard all the add_subdirectory test folders, not just an arbitrary instance.

@Krzmbrzl Krzmbrzl requested a review from epourmal as a code owner October 26, 2023 14:31
@Krzmbrzl
Copy link
Contributor Author

I think I added guards for all other tests as well 👀

@lrknox lrknox merged commit 87b3e7c into HDFGroup:develop Oct 30, 2023
40 checks passed
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.

Can't compile with HDF5_EXTERNALLY_CONFIGURED=ON (cmake)
5 participants