fix cmake muti platform bug