cmake: Fix static library name in mingw

This corrects the static library name to libminiupnpc.a.
Otherwise 'lib' is prepended twice, like liblibminiupnpc.a.
This commit is contained in:
Biswapriyo Nath 2022-04-01 20:41:28 +05:30 committed by GitHub
parent 689d1fdd04
commit 9e99c44adb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ if (UPNPC_BUILD_STATIC)
add_library (miniupnpc::miniupnpc ALIAS libminiupnpc-static) add_library (miniupnpc::miniupnpc ALIAS libminiupnpc-static)
endif() endif()
set_target_properties (libminiupnpc-static PROPERTIES EXPORT_NAME miniupnpc) set_target_properties (libminiupnpc-static PROPERTIES EXPORT_NAME miniupnpc)
if (WIN32) if (WIN32 AND NOT MINGW)
set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "libminiupnpc") set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "libminiupnpc")
else() else()
set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "miniupnpc") set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "miniupnpc")