-
Notifications
You must be signed in to change notification settings - Fork 18
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
FFTW3 and ACE location can only be set via environment variable #147
Comments
@evgueni-ovtchinnikov can you then add something like this to the doc as well? Feel free to improve:
|
Remove as it's ignored (see #147). Note that it was wrongly spelled in External_Gadgetron.cmake
done |
* Remove setting of FFTW3_ROOT_DIR CMake variable Remove as it's ignored (see #147). Note that it was wrongly spelled in External_Gadgetron.cmake * pass SWIG_EXECUTABLE to all projects * correct use of mark_as_superbuild Use `ALL_PROJECTS` as opposed to `PROJECTS ALL_PROJECTS`. This seems to have the same effect though. See #70. * small corrections to FindACE.cmake - Don't set ACE_DIR with makr_as_superbuild. Should have been ACE_ROOT, but it isn't used anyway - correct variable names * some clean-up of Armadillo extra comments and remove mark_as_superbuild as not used. * correct setting of SWIG variables, adding SWIG_EXECUTABLE to the cache This also allows people to change the executable if they want. * correct diagnostics when using system ACE
It's possible that this can be resolved from CMake 3.12 by setting |
FindFFTW3.cmake (supplied in Gadgetron, ISMRMRD and SIRF, which are all identical) use
$ENV{FFTW_ROOT_DIR}
. Therefore, setting theFFTW_ROOT_DIR
CMake variable has no effect. Instead, when usingUSE_SYSTEM_FFTW3=OFF
, the user has to set the environment variable before building the superbuild (note that setting it when running CMake the first time will not have any effect).The same holds for
ACE_ROOT
.@evgueni-ovtchinnikov , please add this to our installation documentation (wike etc) and close this issue when done.
Notes
As CMake doesn't come with FFTW3 support, it is currently necessary to have FindFFTW3.cmake reproduced 3 times. sigh.
This is poorely documented in FindFFTW3.cmake, which could be fixed by a PR to Gadgetron, ISMRMRD and SIRF. Similarly, we could fix
FindFFTW3.cmake
to also use the CMake variable.I have tried to use
set(ENV{FFTW3_ROOT_DIR} bloe)
in our
External_FindFFTW.cmake
. This however doesn't pass the environment variable to the CMake instances for Gadgetron etc.By the way, when using
USE_SYSTEM_FFTW3=OFF
, CMake currently does find our own installation even if theFFTW3_ROOT_DIR
env variable (asfind_library
etc give precedence toMAKE_PREFIX_PATH
overHINTS
).The text was updated successfully, but these errors were encountered: