summaryrefslogtreecommitdiff
path: root/accel-pppd/extra
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-08-30 18:25:00 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-08-30 18:25:00 +0400
commit02e5a68486363296baf96be048e4cd4e1398bcf3 (patch)
treeff0c79e1d809a0cbe33b806fb19a8c66e884a43f /accel-pppd/extra
parentb7bd5d692e7113465a72aff79eea77ccdea72edf (diff)
downloadaccel-ppp-02e5a68486363296baf96be048e4cd4e1398bcf3.tar.gz
accel-ppp-02e5a68486363296baf96be048e4cd4e1398bcf3.zip
net-snmp: NETSNMP_PREFIX option to locate net-snmp library at different location
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r--accel-pppd/extra/net-snmp/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/extra/net-snmp/CMakeLists.txt b/accel-pppd/extra/net-snmp/CMakeLists.txt
index 4dadb2c..bb0e6f7 100644
--- a/accel-pppd/extra/net-snmp/CMakeLists.txt
+++ b/accel-pppd/extra/net-snmp/CMakeLists.txt
@@ -18,6 +18,11 @@ ADD_LIBRARY(net-snmp SHARED ${sources})
TARGET_LINK_LIBRARIES(net-snmp netsnmpagent netsnmphelpers netsnmpmibs
netsnmp)
+IF (NETSNMP_PREFIX)
+ SET_PROPERTY(TARGET net-snmp PROPERTY COMPILE_FLAGS "-I${NETSNMP_PREFIX}/include")
+ SET_PROPERTY(TARGET net-snmp PROPERTY LINK_FLAGS "-L${NETSNMP_PREFIX}/lib")
+ENDIF (NETSNMP_PREFIX)
+
INSTALL(TARGETS net-snmp
LIBRARY DESTINATION lib/accel-ppp
)