[cmake-developers] Improving the version selection behavior of EXACT

Brad King brad.king at kitware.com
Fri Oct 3 12:14:38 EDT 2014


On 10/03/2014 11:53 AM, Rolf Eike Beer wrote:
> It looks like this line is the culprit:
> 
>   if (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}")
> 
> I can solve this in CMake language, but the question is again if it may be 
> worth solving in the command itself? Meanwhile I'll prepare an implementation 
> in CMake code, we can replace that with anything better anytime later.

Yes, I think the command should be fixed to compare only as many
components as are given on both sides, ignoring extra on one side.
However, that will require a policy.

Please fix it in the module by hand for now and look at adding a
policy for this after the 3.1 release.

Thanks,
-Brad




More information about the cmake-developers mailing list