1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 03:41:27 +02:00

Switch CMake policy CMP0023 to NEW

This commit is contained in:
Dominik Schmidt
2018-10-30 20:15:18 +01:00
parent 9327204c78
commit 1ab3ed9f93
7 changed files with 19 additions and 19 deletions

View File

@@ -107,7 +107,7 @@ endif (NOT UPNPC_BUILD_STATIC AND NOT UPNPC_BUILD_SHARED)
if (UPNPC_BUILD_STATIC)
add_library (upnpc-static STATIC ${MINIUPNPC_SOURCES})
set_target_properties (upnpc-static PROPERTIES OUTPUT_NAME "miniupnpc")
target_link_libraries (upnpc-static ${LDLIBS})
target_link_libraries (upnpc-static PRIVATE ${LDLIBS})
set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} upnpc-static)
set (UPNPC_LIBRARY_TARGET upnpc-static)
endif (UPNPC_BUILD_STATIC)
@@ -117,7 +117,7 @@ if (UPNPC_BUILD_SHARED)
set_target_properties (upnpc-shared PROPERTIES OUTPUT_NAME "miniupnpc")
set_target_properties (upnpc-shared PROPERTIES VERSION ${MINIUPNPC_VERSION})
set_target_properties (upnpc-shared PROPERTIES SOVERSION ${MINIUPNPC_API_VERSION})
target_link_libraries (upnpc-shared ${LDLIBS})
target_link_libraries (upnpc-shared PRIVATE ${LDLIBS})
set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} upnpc-shared)
set (UPNPC_LIBRARY_TARGET upnpc-shared)
endif (UPNPC_BUILD_SHARED)

View File

@@ -71,6 +71,9 @@ ADD_LIBRARY( qxtweb-standalone STATIC
${sources}
)
target_link_libraries( qxtweb-standalone Qt5::Network)
target_link_libraries( qxtweb-standalone PUBLIC
Qt5::Network
)
set_target_properties( qxtweb-standalone PROPERTIES AUTOMOC TRUE )