Browse Source

add in patch fix for incorrect included library

master
R4SAS 5 years ago committed by GitHub
parent
commit
e7b8113648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      miniupnpc-version.patch

8
miniupnpc-version.patch

@ -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()

Loading…
Cancel
Save