Correct warning at cmake stage