plugins also link lwsws against websockets_shared
authorAndy Green <andy@warmcat.com>
Wed, 6 Apr 2016 19:10:54 +0000 (03:10 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 7 Apr 2016 01:38:08 +0000 (09:38 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
CMakeLists.txt

index 924778b..9b5d2ac 100644 (file)
@@ -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"