-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
CMake's _USE_EXTERNAL
variables are confusing
#3637
Comments
Agree this requires discussion. We're going to be setting up a recurring working group meeting to discuss filter issues (details TBD) and this should be one of the first things we discuss. |
Looking at this, These options control whether cmake will only do a find package or use the EXTERNALPROJECT_ADD (now FETCHCONTENT) process. |
Yep, that's what I thought they were at first (not that it was related to |
Would adding, EXTERNALPROJECT_ADD (now FETCHCONTENT), help? |
OR change the name? |
For me, yes, that in the docstring would have helped. Not sure how useful it would be for non-CMake experts building HDF5 though. Something like:
would be more mechanism-agnostic too. |
Should be clearer with fix in #4512, |
Describe the bug
The
ZLIB_USE_EXTERNAL
andSZIP_USE_EXTERNAL
variables are confusingly named. They refer to "make a new external build and use it", not "use an external copy that has already been built". The hint in the docstring is that it uses "building", not "build", but this is far too subtle IMO. Especially when the behavior is such that if something fails, the associated functionality is just turned off with a warning message. If the functionality was requested, it should be a hard error if it cannot be made available to avoid surprises.Expected behavior
If a feature is requested (say,
HDF5_ENABLE_Z_LIB_SUPPORT
), it should be an error if it is not found. Same with SZIP or any other filter requests. Additionally, docstrings and/or variable names could be more clear.Platform (please complete the following information)
The text was updated successfully, but these errors were encountered: