fix error message formatting in cmake project