Skip to content
Snippets Groups Projects
Commit fd12fc27 authored by Andy Green's avatar Andy Green
Browse files

plugins also link lwsws against websockets_shared


Signed-off-by: default avatarAndy Green <andy@warmcat.com>
parent 8d21c350
No related branches found
No related tags found
No related merge requests found
...@@ -1226,19 +1226,8 @@ if (LWS_WITH_LWSWS) ...@@ -1226,19 +1226,8 @@ if (LWS_WITH_LWSWS)
source_group("Sources" FILES ${LWSWS_SRCS}) source_group("Sources" FILES ${LWSWS_SRCS})
add_executable("lwsws" ${LWSWS_SRCS} ${LWSWS_HDR}) add_executable("lwsws" ${LWSWS_SRCS} ${LWSWS_HDR})
if (LWS_LINK_TESTAPPS_DYNAMIC) target_link_libraries("lwsws" websockets_shared)
if (NOT LWS_WITH_SHARED) add_dependencies("lwsws" websockets_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()
# Set test app specific defines. # Set test app specific defines.
set_property(TARGET "lwsws" set_property(TARGET "lwsws"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment