transferred to cmake