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

Doesn't find nifti #102

Open
ryandesign opened this issue Oct 24, 2018 · 1 comment
Open

Doesn't find nifti #102

ryandesign opened this issue Oct 24, 2018 · 1 comment

Comments

@ryandesign
Copy link

I am in the process of adding libminc to MacPorts.

I have nifticlib 2.0.0 installed and I would like libminc to use it.

I have used -DLIBMINC_USE_SYSTEM_NIFTI=ON when running cmake, but the system's nifti did not get used. I also did not see any message to that effect; it just proceeded to build using its built-in nifti, which is not what I wanted. If I request system nifti, and system nifti is not found, I expect the configuration to exit with an error message.

Investigating, I found that NIFTI_INCLUDE_DIR and ZNZ_INCLUDE_DIR did not get set. Setting them manually to the location where the headers are installed ($PREFIX/include/nifti) worked and the system's nifti is now used.

libminc's cmake file should be updated to understand that that's where nifti installs its headers by default, and it should print an error message and exit if the headers are not found, rather than ignoring the user's request to use the system nifti.

@gdevenyi
Copy link
Contributor

We probably need a custom FindLibNifti.cmake , some project has probably made that we can steal.

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

2 participants