Input files of configure_file are traditionnally suffixed with .in. .cmake extension is preferably reserved to scripts.