<div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Thank you Gilles. It worked.</span><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">I uninstalled system version of exiv2 and built exiv2 from source.</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">The problem was exactly as you mentioned that cmake was detecting system version of exiv2.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed 24 Jul, 2019, 02:38 Gilles Caulier, <<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Your problem is to try to use exiv2 development files in an extra directory when official development package is already installed on your system. Only one must be installed. In other word, uninstall system devel package and this will be better.</div><div><br></div><div>Best</div><div><br></div><div>Gilles Caulier </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 22 juil. 2019 à 12:01, Sambhav Dusad <<a href="mailto:sambhavdusad24@gmail.com" target="_blank" rel="noreferrer">sambhavdusad24@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br>My previous laptop got bad so I had to build digikam again on a new machine. While building digikam, I installed all the dependencies but exiv2 packages show an error.<br><br>I built exiv2 from source in default directory i.e. /usr/local (packages and libs) but cmake always try to find exiv packages in /usr/include folder rather than /usr/local. I even removed any exiv2 packages in /usr/include directory.<br><br>Is there any way to specify cmake to find exiv2 package in /usr/local directory or any other way?<br><br>--<br>Thanks<br>Sambhav</div>
</blockquote></div>
</blockquote></div>