From d46de81fc6475feed61245d7a237d51880729900 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 15 Dec 2021 14:44:41 +0200 Subject: [PATCH] Linking nel udp client sample without nel3d (fixes ryzom/ryzomcore#316) --- nel/samples/net/udp/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nel/samples/net/udp/CMakeLists.txt b/nel/samples/net/udp/CMakeLists.txt index 21ef87015..cf935ea79 100644 --- a/nel/samples/net/udp/CMakeLists.txt +++ b/nel/samples/net/udp/CMakeLists.txt @@ -6,12 +6,14 @@ ADD_EXECUTABLE(nl_sample_udpserver WIN32 bench_service.cpp receive_task.cpp rece ADD_DEFINITIONS(-DUDP_DIR="\\"${NL_SHARE_ABSOLUTE_PREFIX}/nl_sample_udp/\\"") +TARGET_LINK_LIBRARIES(nl_sample_udpclient nelmisc nelnet) +TARGET_LINK_LIBRARIES(nl_sample_udpserver nelmisc nelnet) + IF(WITH_3D) ADD_DEFINITIONS(-DUSE_3D) + TARGET_LINK_LIBRARIES(nl_sample_udpclient nel3d) ENDIF() -TARGET_LINK_LIBRARIES(nl_sample_udpclient nelmisc nelnet nel3d) -TARGET_LINK_LIBRARIES(nl_sample_udpserver nelmisc nelnet) NL_DEFAULT_PROPS(nl_sample_udpclient "NeL, Samples, Net, UDP: UDP Client") NL_DEFAULT_PROPS(nl_sample_udpserver "NeL, Samples, Net, UDP: UDP Server") NL_ADD_RUNTIME_FLAGS(nl_sample_udpclient)