From 543700aed1ac045f12dfafd898bbbbae955fee31 Mon Sep 17 00:00:00 2001 From: Nazar Androshchuk Date: Wed, 4 Sep 2024 21:21:27 +0100 Subject: Fix #189: Make module pppoe work without module radius The radius library is now linked in pppoe if `-DRADIUS` is true; it wasn't any issue when `-DRADIUS=FALSE`. This patch can't be worked around if the user wants to use pppoe with chap-secrets, because radius conflicts with chap-secrets. --- accel-pppd/ctrl/pppoe/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/accel-pppd/ctrl/pppoe/CMakeLists.txt b/accel-pppd/ctrl/pppoe/CMakeLists.txt index fd4f9a36..1f82f04e 100644 --- a/accel-pppd/ctrl/pppoe/CMakeLists.txt +++ b/accel-pppd/ctrl/pppoe/CMakeLists.txt @@ -13,7 +13,13 @@ SET(sources ${sources} tr101.c) ENDIF(RADIUS) ADD_LIBRARY(pppoe SHARED ${sources}) -TARGET_LINK_LIBRARIES(pppoe vlan-mon connlimit) + +IF (RADIUS) + TARGET_LINK_LIBRARIES(pppoe vlan-mon connlimit radius) +ELSE (RADIUS) + TARGET_LINK_LIBRARIES(pppoe vlan-mon connlimit) +ENDIF (RADIUS) + set_property(TARGET pppoe PROPERTY CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) set_property(TARGET pppoe PROPERTY INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/accel-ppp) -- cgit v1.2.3