fix cmake bug