mirror of
https://github.com/r4sas/miniupnpc-epel8
synced 2025-01-14 08:57:58 +00:00
add in patch fix for incorrect included library
This commit is contained in:
parent
642ce11838
commit
e7b8113648
@ -1,6 +1,6 @@
|
||||
--- CMakeLists.txt.orig 2018-05-07 11:07:00.000000000 +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)
|
||||
add_library (libminiupnpc-shared SHARED ${MINIUPNPC_SOURCES})
|
||||
set_target_properties (libminiupnpc-shared PROPERTIES OUTPUT_NAME "miniupnpc")
|
||||
@ -8,3 +8,9 @@
|
||||
set_target_properties (libminiupnpc-shared PROPERTIES SOVERSION ${MINIUPNPC_API_VERSION})
|
||||
target_link_libraries (libminiupnpc-shared PRIVATE miniupnpc-private)
|
||||
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…
Reference in New Issue
Block a user