From bbb2849b6036b7f60f47a626211d1be4e34241a4 Mon Sep 17 00:00:00 2001 From: Jamis Hoo Date: Mon, 13 Apr 2020 22:08:43 +0800 Subject: [PATCH] Also apply LIB_ONLY for shared library, fix #2443 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index aa1af922..87171e7b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -206,7 +206,7 @@ target_compile_definitions(ss-tunnel-shared PUBLIC -DMODULE_TUNNEL) target_compile_definitions(ss-manager-shared PUBLIC -DMODULE_MANAGER) target_compile_definitions(ss-local-shared PUBLIC -DMODULE_LOCAL) target_compile_definitions(ss-redir-shared PUBLIC -DMODULE_REDIR) -target_compile_definitions(shadowsocks-libev-shared PUBLIC -DMODULE_LOCAL) +target_compile_definitions(shadowsocks-libev-shared PUBLIC -DMODULE_LOCAL -DLIB_ONLY) target_include_directories(shadowsocks-libev-shared PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})