interpreter: Compare the version of a cached dependency() before using it
interpreter: Compare the version of a cached dependency() before using it

Without this, checks with incompatible versions but the same library would
return true. Example:

dependency('zlib', version : '>=1.2')
dependency('zlib', version : '<1.0') # this will return the same dep again!

Example: https://github.com/mesonbuild/meson/issues/568

pexip/meson,jpakkane/meson,aaronp24/meson,wberrier/meson,centricular/meson,fmuellner/meson,jeandet/meson,mesonbuild/meson,rhd/meson,becm/meson,ernestask/meson,thiblahute/meson,becm/meson,becm/meson,rhd/meson,germandiagogomez/meson,MathieuDuponchelle/meson,thiblahute/meson,MathieuDuponchelle/meson,trhd/meson,mesonbuild/meson,pexip/meson,germandiagogomez/meson,QuLogic/meson,QuLogic/meson,fmuellner/meson,fmuellner/meson,thiblahute/meson,trhd/meson,wberrier/meson,centricular/meson,QuLogic/meson,aaronp24/meson,ernestask/meson,centricular/meson,ernestask/meson,ernestask/meson,centricular/meson,jeandet/meson,mesonbuild/meson,germandiagogomez/meson,wberrier/meson,rhd/meson,QuLogic/meson,trhd/meson,QuLogic/meson,jpakkane/meson,jeandet/meson,QuLogic/meson,jpakkane/meson,jpakkane/meson,thiblahute/meson,becm/meson,ernestask/meson,aaronp24/meson,germandiagogomez/meson,rhd/meson,becm/meson,trhd/meson,thiblahute/meson,jeandet/meson,centricular/meson,ernestask/meson,thiblahute/meson,becm/meson,pexip/meson,aaronp24/meson,fmuellner/meson,mesonbuild/meson,centricular/meson,jpakkane/meson,rhd/meson,jeandet/meson,centricular/meson,MathieuDuponchelle/meson,pexip/meson,trhd/meson,aaronp24/meson,mesonbuild/meson,thiblahute/meson,wberrier/meson,MathieuDuponchelle/meson,mesonbuild/meson,becm/meson,wberrier/meson,wberrier/meson,MathieuDuponchelle/meson,rhd/meson,fmuellner/meson,QuLogic/meson,ernestask/meson,fmuellner/meson,ernestask/meson,thiblahute/meson,jeandet/meson,trhd/meson,becm/meson,thiblahute/meson,aaronp24/meson,jpakkane/meson,germandiagogomez/meson,becm/meson,aaronp24/meson,centricular/meson,trhd/meson,pexip/meson,rhd/meson,trhd/meson,pexip/meson,jpakkane/meson,aaronp24/meson,germandiagogomez/meson,QuLogic/meson,mesonbuild/meson,ernestask/meson,pexip/meson,rhd/meson,MathieuDuponchelle/meson,mesonbuild/meson,MathieuDuponchelle/meson,mesonbuild/meson,jpakkane/meson,trhd/meson,pexip/meson,pexip/meson,aaronp24/meson,MathieuDuponchelle/meson,pexip/meson,jeandet/meson,germandiagogomez/meson,mesonbuild/meson,becm/meson,fmuellner/meson,wberrier/meson,jeandet/meson,fmuellner/meson,jpakkane/meson,jeandet/meson,QuLogic/meson,wberrier/meson,fmuellner/meson,MathieuDuponchelle/meson