by superbatfish · 9y ago · 0 comments
However, if you're using conda, you might be able to at least simplify your build scripts, even though you can't eliminate them.
If you are okay with requiring your users to have conda, then you can exploit that fact to simplify your CMakeLists.txt in some ways. For instance, find_library, etc.. can be replaced with hard-coded links to ${CONDA_PREFIX}/lib/...
(I'm not saying that's necessarily "best practice" for all projects, but it's a nice option to consider, especially in the early phases of development.)
$ conda install conda-build # prerequisite...
$ https://github.com/conda-forge/fftw-feedstock && cd fftw-feedstock
$ emacs recipe/build.sh # Add --enable-openmp
$ conda build recipe
$ anaconda upload -u mychannel ${CONDA_PREFIX}/conda-bld/*-64/fftw-*.tar.bz2
Now you can install your custom-built version of fftw and easily share it with your friends by telling them the name of your channel on anaconda.org.