--- a/src/hugin_config.h.in.cmake
+++ b/src/hugin_config.h.in.cmake
@@ -50,12 +50,6 @@
 /* Location for XRC files and other data, as defined during configuration*/
 #define INSTALL_XRC_DIR "${INSTALL_XRC_DIR}/"
 
-/* Use exiv2, if found */
-#cmakedefine EXIV2_FOUND 1
-#ifdef EXIV2_FOUND
-#define HUGIN_USE_EXIV2 1
-#endif
-
 /* if FFTW library is available */
 #cmakedefine HAVE_FFTW 1