cmake: simplify to a single source of truth of working mode
1 file changed