diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-11-09 16:09:51 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-11-09 16:09:51 +0100 |
commit | fd80621fea5cafcdca3f7fe762fede374a66e4b2 (patch) | |
tree | 0487f909a06e82a11533a8e1f5eda6638ad8cee7 /CMakeLists.txt | |
parent | cf29925b29a4e4e38ab88573f12ec075eacb3d22 (diff) |
dhcpv4: make DHCPv4 support compiletime configurable
Make DHCPv4 support compile time configurable; avoids DHCPv4 functionality
overlap with other packages.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 839f47f..380d633 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,12 @@ if(${UBUS}) set(EXT_LINK ${EXT_LINK} ubus) endif(${UBUS}) -add_executable(odhcpd src/odhcpd.c src/config.c src/router.c src/dhcpv6.c src/ndp.c src/dhcpv6-ia.c src/dhcpv4.c src/netlink.c ${EXT_SRC}) +if(${DHCPV4_SUPPORT}) + add_definitions(-DDHCPV4_SUPPORT) + set(EXT_SRC ${EXT_SRC} src/dhcpv4.c) +endif(${DHCPV4_SUPPORT}) + +add_executable(odhcpd src/odhcpd.c src/config.c src/router.c src/dhcpv6.c src/ndp.c src/dhcpv6-ia.c src/netlink.c ${EXT_SRC}) target_link_libraries(odhcpd resolv ubox uci ${libnl} ${EXT_LINK}) # Installation |