Imagine that you are a Stellarium developer. You are working on a computer (or more precisely, on an OS) that is so slow that rebuilding Stellarium takes a long time even after small changes. Most of your changes are limited to a single plug-in and you are working on a dedicated Bazaar branch. You notice that you are wasting a lot of time even linking the Stellarium executable. What do you do?
You re-run CMake with command line options like the following:
-DUSE_PLUGIN_ANGLEMEASURE=0 -DUSE_PLUGIN_COMPASSMARKS=0 -DUSE_PLUGIN_EXOPLANETS=0 -DUSE_PLUGIN_OBSERVABILITY=0 -DUSE_PLUGIN_OCULARS=0 -DUSE_PLUGIN_PULSARS=0 -DUSE_PLUGIN_QUASARS=0 -DUSE_PLUGIN_RENDERERSTATISTICS=0 -DUSE_PLUGIN_SATELLITES=0 -DUSE_PLUGIN_SOLARSYSTEMEDITOR=0 -DUSE_PLUGIN_SUPERNOVAE=0 -DUSE_PLUGIN_TEXTUSERINTERFACE=0 -DUSE_PLUGIN_TIMEZONECONFIGURATION=0
Guessing on which plug-in I’m working at the moment is left as an exercise for the reader.
P.S. The first rebuild after this change will include a rebuild of the whole StelGui library, as static plug-ins are linked against it.