Improve cmake config.