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:
> The only thing I might add to it would be something like the following:
>
>
> # Only set EXIF_ROOT_DIR to the environment variable if
> # the user has not specifically set it as a "-D" variable
> # on the command line or in CMake-GUI as a CMake Variable.
> if ("${EXIF_ROOT_DIR}" STREQUAL "")
> SET (EXIF_ROOT_DIR $ENV{EXIF_ROOT_DIR})
> endif()