fix PR13550: add a cmake WITH_POLLY option