blob: 6160162afc51dc4befbcb856b1bb8ab339faa31c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- 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})
#
|