<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-plain" wrap="true" style="font-family:
-moz-fixed; font-size: 14px;" lang="x-western">
<pre wrap="">That's good point.
Actually on lines 43-45 the variable EXIF_ROOT_DIR is set according to $ENV{EXIF_ROOT_DIR}
only if the first header-file of libexif is found in that folder. The same behaviour if
the variable EXIF_ROOT_DIR is set with -D option, so if you don't set the env one, but the
cmake one, it works.
Thanks.
Simone
Il 21/01/2011 16:49, Michael Jackson ha scritto:
</pre>
<blockquote type="cite" style="color: rgb(0, 0, 0);">
<pre wrap=""><span class="moz-txt-citetags">> </span>The only thing I might add to it would be something like the following:
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">> </span># Only set EXIF_ROOT_DIR to the environment variable if
<span class="moz-txt-citetags">> </span># the user has not specifically set it as a "-D" variable
<span class="moz-txt-citetags">> </span># on the command line or in CMake-GUI as a CMake Variable.
<span class="moz-txt-citetags">> </span>if ("${EXIF_ROOT_DIR}" STREQUAL "")
<span class="moz-txt-citetags">> </span> SET (EXIF_ROOT_DIR $ENV{EXIF_ROOT_DIR})
<span class="moz-txt-citetags">> </span>endif()
</pre>
</blockquote>
</div>
</body>
</html>