cmake: static build option