cmake: do not use external parameters, do not rely on default values