refine config.cmake