Indeed the main issue is that I’m not very familiar with cmake !
I re-ran everything from scratch to make sure I wasn’t working in a messed up environment from my previous attempts; here’s my full command history.
git clone https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb.git
mkdir -p build/Downloads install
tar xvjf SuperBuild-archives-develop.tar.bz2
wget http://tully.ups-tlse.fr/cressonr/lsgrm/raw/master/lsgrm.remote.cmake -P
cmake -D CMAKE_INSTALL_PREFIX=~/OTB/install -DModule_lsgrm=ON -DOTB_USE_MPI=ON
make -j 45
As you see I tried adding the remote module before the superbuild as you suggested, but cmake gave me a
Manually-specified variables were not used by the project:
So obviously the resulting build does not contain the remote module.