I think that I found the culprit in this case:
I was using
-DRSTUDIO_TARGET=desktop
instead of
-DRSTUDIO_TARGET=Desktop