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:
parent
689d1fdd04
commit
9e99c44adb
|
@ -99,7 +99,7 @@ if (UPNPC_BUILD_STATIC)
|
|||
add_library (miniupnpc::miniupnpc ALIAS libminiupnpc-static)
|
||||
endif()
|
||||
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")
|
||||
else()
|
||||
set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "miniupnpc")
|
||||
|
|
Loading…
Reference in New Issue