CosmoStat / Glimpse

Sparsity based weak lensing mass-mapping tool
Other
6 stars 5 forks source link

Difficulty with non-standard FFTW install location #10

Open eddedmondson opened 6 years ago

eddedmondson commented 6 years ago

I've had some difficulty with a non-standard FFTW install location - I can get cmake for Glimpse to spot it fine, but at the make stage it fails when trying to build NICAEA.

cmake for NICAEA doesn't get to see the FFTW location, although I can fix this by going into the NICAEA tree that gets downloaded and manually running cmake there with -DFFTW_ROOT set appropriately, and building it in place, then going back up and finishing the build for Glimpse.

Can Glimpse's known location for FFTW be passed along to the NICAEA build to avoid this?

EiffL commented 6 years ago

Thanks @eddedmondson, very good point. Hum... Ok, I found this solution: https://stackoverflow.com/questions/12021448/how-can-cmake-arguments-be-forwarded-to-externalproject I'll try to implement something like that as soon as I can, or feel free to open a pull request if you have another solution ;-)

In any case, thanks for finding this problem !