I just compiled G’MIC which using @Carmelo_DrRaw’s CMake script is ridiculously easy. I did that to try and tackle the long command that you had trouble with, but while it was compiling David beat me to it 
@David_Tschumperle why do some commands, such as --rotate start with a double dash?
gmic --help makes no mention of double dashes.