Incidentally, proposed patch from Darrell seems to me as a better solution than workaroung from Fat-Zer. Darrell's patch looks like the right response to change in CMake.
My proposed patch was only a conceptual patch. I have not been able to get anything like that proposal to work. One of you cmake experts will have to dazzle us all. :-)
Darrell