diff --git a/CMakeLists.txt b/CMakeLists.txt index cc9fef0a..cd1a79b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,11 @@ endif () if (UPNPC_BUILD_STATIC) add_library (libminiupnpc-static STATIC ${MINIUPNPC_SOURCES}) - set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "miniupnpc") + if (WIN32) + set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "libminiupnpc") + else() + set_target_properties (libminiupnpc-static PROPERTIES OUTPUT_NAME "miniupnpc") + endif() target_link_libraries (libminiupnpc-static PRIVATE miniupnpc-private) target_include_directories(libminiupnpc-static INTERFACE ../${CMAKE_CURRENT_SOURCE_DIR}) target_compile_definitions(libminiupnpc-static PUBLIC MINIUPNP_STATICLIB)