Fixed build errors.
Fixed cmake diagnostic messsage.