From fd12fc2781135030ce14d4b04291b5b92aac2be0 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 7 Apr 2016 03:10:54 +0800 Subject: [PATCH] plugins also link lwsws against websockets_shared Signed-off-by: Andy Green --- CMakeLists.txt | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 924778b3..9b5d2ac9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1226,19 +1226,8 @@ if (LWS_WITH_LWSWS) source_group("Sources" FILES ${LWSWS_SRCS}) add_executable("lwsws" ${LWSWS_SRCS} ${LWSWS_HDR}) - if (LWS_LINK_TESTAPPS_DYNAMIC) - if (NOT LWS_WITH_SHARED) - message(FATAL_ERROR "Build of the shared library is disabled. LWS_LINK_TESTAPPS_DYNAMIC must be combined with LWS_WITH_SHARED.") - endif() - target_link_libraries("lwsws" websockets_shared) - add_dependencies("lwsws" websockets_shared) - else() - if (NOT LWS_WITH_STATIC) - message(FATAL_ERROR "Build of the static library is disabled. Disabled LWS_LINK_TESTAPPS_DYNAMIC must be combined with LWS_WITH_STATIC.") - endif() - target_link_libraries("lwsws" websockets) - add_dependencies("lwsws" websockets) - endif() + target_link_libraries("lwsws" websockets_shared) + add_dependencies("lwsws" websockets_shared) # Set test app specific defines. set_property(TARGET "lwsws"