-
Notifications
You must be signed in to change notification settings - Fork 263
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
PLUGIN_INSTALL_DIR issues #2429
Comments
Odd. I must be testing for the exact value "YES" instead of doing a boolean test. |
DennisHeimbigner
added a commit
to DennisHeimbigner/netcdf-c
that referenced
this issue
Jun 25, 2022
re: Issue Unidata#2429 The CMake tests for -DPLUGIN_INSTALL_DIR only accepted "on" or "off" as boolean values. So extend to accept e.g. -DPLUGIN_INSTALL_DIR=yes or -DPLUGIN_INSTALL_DIR=1, etc.
I hope #2430 fixes this. |
This is fixed now and this issue should be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
netcdf4-python test failures revealed some issues with the CMake build.
The default value doesn't match the documentation:
It suggest being a boolean (for which YES/ON is equivalent), but treating it as such, by using
-DPLUGIN_INSTALL_DIR:BOOL=ON
, causes the build to fail:Defaulting to -DPLUGIN_INSTALL_DIR=NOTFOUND
The default path (
/usr/local/hdf5/lib/plugin
) is also incorrect when using-DCMAKE_INSTALL_PREFIX=/usr
and-DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu
. A better default would be${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/hdf5/plugin
.The text was updated successfully, but these errors were encountered: