Index: libkexiv2/CMakeLists.txt
===================================================================
--- libkexiv2/CMakeLists.txt	(revision 1149793)
+++ libkexiv2/CMakeLists.txt	(working copy)
@@ -26,6 +26,9 @@
 
 ADD_DEFINITIONS(${EXIV2_DEFINITIONS})
 ADD_DEFINITIONS(${KDE4_ENABLE_EXCEPTIONS})
+IF( WIN32 )
+ADD_DEFINITIONS( -DEXV_HAVE_DLL )
+ENDIF( WIN32 )
 
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h)
 
