Draft: cmake: make incompatible pointers a hard error

Open Eric Engestrom requested to merge eric/piglit:pointer-fix into main

Merge request reports