fix cmake build order