[cmake-developers] [PATCH] fix version handling in find_dependency macro

Alex Merry kde at randomguy3.me.uk
Sat Feb 22 10:28:12 EST 2014


The handling of the optional version argument in the find_dependency()
macro is just wrong.  It is only set if ${ARGV1} (rather than ARGV1)
evaluates to true, and otherwise it remains unchanged from whatever its
previous value was (instead of being cleared).

Either of the attached patches fixes this.

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Always-set-version-variable-of-find_dependency-macro.patch
Type: text/x-patch
Size: 924 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140222/7afc08aa/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-settings-of-the-version-variable-of-find_depende.patch
Type: text/x-patch
Size: 847 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140222/7afc08aa/attachment-0001.bin>


More information about the cmake-developers mailing list