blob: 2abf79c4d6799177f75915be0946ea883a9f4124 [file] [log] [blame] [edit]
--- CMakeLists.txt.orig 2014-07-26 02:44:06.627540200 +0300
+++ CMakeLists.txt 2014-07-26 02:47:06.751842700 +0300
@@ -216,6 +216,7 @@
INSTALL(
TARGETS ${VMIME_LIBRARY_NAME}
EXPORT ${VMIME_LIBRARY_NAME}-config
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}" COMPONENT sharedlibs
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" COMPONENT sharedlibs
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" COMPONENT sharedlibs
)
@@ -940,23 +941,25 @@
ENDIF()
ENDIF()
- # MLang
- CHECK_INCLUDE_FILES(Mlang.h VMIME_HAVE_MLANG_H)
- CHECK_LIBRARY_EXISTS("mlang" ConvertINetString "${CMAKE_LIBRARY_PATH}" VMIME_HAVE_MLANG_LIB)
-
- IF(VMIME_HAVE_MLANG_H)
- IF(VMIME_HAVE_MLANG_LIB)
- SET(VMIME_HAVE_MLANG ON)
-
- IF(VMIME_BUILD_SHARED_LIBRARY)
- TARGET_LINK_LIBRARIES(
- ${VMIME_LIBRARY_NAME}
- ${TARGET_LINK_LIBRARIES}
- "mlang"
- )
- ENDIF()
- ENDIF()
- ENDIF()
+ IF (NOT MINGW)
+ # MLang
+ CHECK_INCLUDE_FILES(Mlang.h VMIME_HAVE_MLANG_H)
+ CHECK_LIBRARY_EXISTS("mlang" ConvertINetString "${CMAKE_LIBRARY_PATH}" VMIME_HAVE_MLANG_LIB)
+
+ IF(VMIME_HAVE_MLANG_H)
+ IF(VMIME_HAVE_MLANG_LIB)
+ SET(VMIME_HAVE_MLANG ON)
+
+ IF(VMIME_BUILD_SHARED_LIBRARY)
+ TARGET_LINK_LIBRARIES(
+ ${VMIME_LIBRARY_NAME}
+ ${TARGET_LINK_LIBRARIES}
+ "mlang"
+ )
+ ENDIF()
+ ENDIF()
+ ENDIF()
+ ENDIF()
ENDIF()