fix CMAKE for return variables