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()
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to