Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation.