File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -189,9 +189,9 @@ if ( UNIX OR MINGW OR WIN32)
189
189
endif ()
190
190
# stamp library name with version current value (for Windows only)
191
191
if (MINGW OR WIN32 )
192
- set ( lib_output_name ${INSTPATCH_INSTALL_TARGET } )
192
+ set ( lib_version_suffix ${LIB_VERSION_CURRENT } )
193
193
else (MINGW OR WIN32 )
194
- set ( lib_output_name instpatch- 1.0 )
194
+ set ( lib_version_suffix 1.0 )
195
195
endif (MINGW OR WIN32 )
196
196
configure_file ( libinstpatch-1.0.pc.in
197
197
${CMAKE_BINARY_DIR} /libinstpatch-1.0.pc IMMEDIATE @ONLY )
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ Name: libInstPatch
7
7
Description: MIDI instrument patch library
8
8
Version: @VERSION@
9
9
Requires: glib-2.0 gobject-2.0 gthread-2.0 sndfile
10
- Libs: -L${libdir} -l@lib_output_name @
10
+ Libs: -L${libdir} -linstpatch-@lib_version_suffix @
11
11
Cflags: -I${includedir}
Original file line number Diff line number Diff line change @@ -345,15 +345,15 @@ if ( MACOSX_FRAMEWORK )
345
345
elseif ( MINGW OR WIN32 )
346
346
set_target_properties ( libinstpatch
347
347
PROPERTIES
348
- PREFIX ""
349
- OUTPUT_NAME ${INSTPATCH_INSTALL_TARGET}
348
+ ARCHIVE_OUTPUT_NAME "instpatch-${LIB_VERSION_CURRENT} "
349
+ PREFIX "lib"
350
+ OUTPUT_NAME "instpatch-${LIB_VERSION_CURRENT} "
350
351
VERSION ${LIB_VERSION_INFO}
351
352
)
352
353
else ( MINGW OR WIN32 )
353
354
set_target_properties ( libinstpatch
354
355
PROPERTIES
355
- PREFIX ""
356
- OUTPUT_NAME "libinstpatch-1.0"
356
+ OUTPUT_NAME "instpatch-1.0"
357
357
VERSION ${LIB_VERSION_INFO}
358
358
SOVERSION ${LIB_VERSION_CURRENT}
359
359
)
You can’t perform that action at this time.
0 commit comments