From 3fc5c6532f1a56f27310fb733a089e1064716b10 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 17 Nov 2017 19:24:14 +0100 Subject: build: Fix setting configuration definitions Variable in cache need to be explicitly unset else they will remain in the cache and still be defined by #cmakedefine. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/shim-udp/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/shim-udp/CMakeLists.txt') diff --git a/src/ipcpd/shim-udp/CMakeLists.txt b/src/ipcpd/shim-udp/CMakeLists.txt index 2bc68154..0319e63d 100644 --- a/src/ipcpd/shim-udp/CMakeLists.txt +++ b/src/ipcpd/shim-udp/CMakeLists.txt @@ -43,9 +43,10 @@ if (NSLOOKUP_EXECUTABLE AND NSUPDATE_EXECUTABLE) if (NOT DISABLE_DNS) message(STATUS "DDNS support enabled") set(HAVE_DDNS TRUE CACHE INTERNAL "") - else () + else () message(STATUS "DDNS support disabled by user") - endif () + unset(HAVE_DDNS CACHE) + endif () else () if (NSLOOKUP_EXECUTABLE) message(STATUS "Install nsupdate to enable DDNS support") -- cgit v1.2.3