[cmake] add error if yarp is missing the math library