CMake: only compile 'dot_builtins' when building shared libraries
It is not clear to me why this logic makes sense, but this at least aligns the CMake build system with what the Autotools build system is doing.
Gitlab: related to !3702
Suggested-by: Daniel Nicoletti daniel.nicoletti@kdab.com