blob: 6160162afc51dc4befbcb856b1bb8ab339faa31c [file] [log] [blame] [edit]
--- libmng-2.0.3/CMakeLists.txt.orig 2015-04-28 15:48:37.037800000 +0300
+++ libmng-2.0.3/CMakeLists.txt 2015-04-28 15:50:35.161000000 +0300
@@ -423,6 +423,8 @@
SET_TARGET_PROPERTIES(${MNG_LIBRARY_NAME}-shared
PROPERTIES
OUTPUT_NAME ${MNG_LIBRARY_NAME}
+ RUNTIME_OUTPUT_NAME ${MNG_LIBRARY_NAME}-${MNG_VERSION_MAJOR}
+ ARCHIVE_OUTPUT_NAME ${MNG_LIBRARY_NAME}
${MNG_LIBRARY_PROPERTIES} )
#
INSTALL(TARGETS ${MNG_LIBRARY_NAME}-shared
@@ -434,7 +436,7 @@
#
ENDIF(BUILD_SHARED_LIBS)
#------------ libmng.pc ---------------
-IF(UNIX)
+IF(UNIX OR MINGW)
SET(MNG_LIBS_PRIVATE "")
IF(JPEG_FOUND)
SET(MNG_LIBS_PRIVATE "${MNG_LIBS_PRIVATE} -ljpeg")
@@ -458,7 +458,7 @@
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libmng.pc DESTINATION
${MNG_INSTALL_PKGCONFIG_DIR} )
-ENDIF(UNIX)
+ENDIF(UNIX OR MINGW)
#
INSTALL(EXPORT MNG_TARGETS DESTINATION ${MNG_INSTALL_PACKAGE_DIR})
#