Merge pull request #604 from Biswa96/cmake-mingw-static
cmake: Fix static library name in mingw
This commit is contained in:
commit
c6750f0bbe
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue