[CMake] fix cmake build for mak