fix cmake based on new cocos usage