mirror of
https://github.com/3proxy/3proxy.git
synced 2026-07-16 17:30:11 +08:00
Update CMakeLists.txt
This commit is contained in:
parent
de5acb2abd
commit
b59c044663
@ -661,16 +661,18 @@ foreach(PROXY_NAME proxy socks pop3p smtpp ftppr tcppm udppm tlspr)
|
|||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# Install plugins
|
# Install plugins
|
||||||
file(GLOB PLUGINFILES "${PLUGIN_OUTPUT_DIR}/*${PLUGIN_SUFFIX}")
|
# Use install(DIRECTORY ... FILES_MATCHING) so the glob resolves at install
|
||||||
|
# time, after plugin targets have been built. A configure-time file(GLOB)
|
||||||
|
# would run before any plugin exists and install nothing.
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
install(FILES
|
install(DIRECTORY ${PLUGIN_OUTPUT_DIR}/
|
||||||
${PLUGINFILES}
|
|
||||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
FILES_MATCHING PATTERN "*${PLUGIN_SUFFIX}"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
install(FILES
|
install(DIRECTORY ${PLUGIN_OUTPUT_DIR}/
|
||||||
${PLUGINFILES}
|
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/3proxy
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/3proxy
|
||||||
|
FILES_MATCHING PATTERN "*${PLUGIN_SUFFIX}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user