|
|
@ -1,6 +1,6 @@ |
|
|
|
--- CMakeLists.txt.orig 2018-05-07 11:07:00.000000000 +0000
|
|
|
|
--- CMakeLists.txt.orig 2018-05-07 11:07:00.000000000 +0000
|
|
|
|
+++ CMakeLists.txt 2019-10-22 13:34:43.486818800 +0000
|
|
|
|
+++ CMakeLists.txt 2019-10-22 13:34:43.486818800 +0000
|
|
|
|
@@ -119,7 +119,6 @@ endif ()
|
|
|
|
@@ -119,12 +119,11 @@ endif ()
|
|
|
|
if (UPNPC_BUILD_SHARED) |
|
|
|
if (UPNPC_BUILD_SHARED) |
|
|
|
add_library (libminiupnpc-shared SHARED ${MINIUPNPC_SOURCES}) |
|
|
|
add_library (libminiupnpc-shared SHARED ${MINIUPNPC_SOURCES}) |
|
|
|
set_target_properties (libminiupnpc-shared PROPERTIES OUTPUT_NAME "miniupnpc") |
|
|
|
set_target_properties (libminiupnpc-shared PROPERTIES OUTPUT_NAME "miniupnpc") |
|
|
@ -8,3 +8,9 @@ |
|
|
|
set_target_properties (libminiupnpc-shared PROPERTIES SOVERSION ${MINIUPNPC_API_VERSION}) |
|
|
|
set_target_properties (libminiupnpc-shared PROPERTIES SOVERSION ${MINIUPNPC_API_VERSION}) |
|
|
|
target_link_libraries (libminiupnpc-shared PRIVATE miniupnpc-private) |
|
|
|
target_link_libraries (libminiupnpc-shared PRIVATE miniupnpc-private) |
|
|
|
target_compile_definitions(libminiupnpc-shared PRIVATE MINIUPNP_EXPORTS) |
|
|
|
target_compile_definitions(libminiupnpc-shared PRIVATE MINIUPNP_EXPORTS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- target_include_directories(libminiupnpc-static INTERFACE ../${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
+ target_include_directories(libminiupnpc-shared INTERFACE ../${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
if (WIN32) |
|
|
|
|
|
|
|
target_link_libraries(libminiupnpc-shared INTERFACE ws2_32 iphlpapi) |
|
|
|
|
|
|
|
endif() |
|
|
|