git clone https://github.com/dtschump/gmic.git code-gmic
cmake -DCMAKE_INSTALL_PREFIX="$HOME/programs/gmic" ../
make -j8 install
Compiled successfully, but installation failed with:
CMake Error at cmake_install.cmake:90 (file):
file INSTALL cannot copy file
The user should be able to install to a custom folder if system-wide installation is not desired, for example because the user is compiling in a sandbox, or because the user wants to install this for a GIMP git bleeding-edge build which is confined to its own folder so as not to conflict with the GIMP stable build installed system-wide by the package manager.
CMAKE_INSTALL_PREFIX enables that, but it doesn't seem to be implemented for the GIMP plugin.