[cmake-developers] [New Module] FindOpenCL, FindHg

Stephen Kelly steveire at gmail.com
Sat Feb 15 12:54:47 EST 2014


Rolf Eike Beer wrote:

> Matthäus G. Chajdas wrote:
>> Hi Eike,
>> 
>> all right, then Hg, as it's FindHg, unless there is a naming policy I'm
>> not aware of. I was just confused a bit due to FindGit, which uses GIT_
>> as the prefix.
>> 
>> How do I proceed from here? What should I do next?
> 
> I think you can reduce FindHg quite a bit. Here are some examples:
> 
> -do not set Hg_FOUND to anything, FPHSA will do it for you

You need to set it explicitly when using FPHSA actually, because it sets 
uppercase(Hg_FOUND) == HG_FOUND instead by default. I consider that a bug, 
but the 'fix decision' was to require explicitly specifying the _FOUND 
variable in order to get a sane value.

Thanks,

Steve.





More information about the cmake-developers mailing list