From ec473cb9a6817bc748c4496a6dba719e7b751368 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 7 Feb 2026 13:01:42 +0100 Subject: build: Fix invisible IPCP_TARGET variables The IPCP_*_TARGET variables (e.g., set(IPCP_LOCAL_TARGET ipcpd-local)) were defined locally in each IPCP's CMakeLists.txt (e.g., CMakeLists.txt), but the configure_file() that substitutes @IPCP_LOCAL_TARGET@ into config.h.in runs in a sibling scope that is processed before ipcpd. Since CMake variables don't propagate between sibling directory scopes, all @IPCP_*_TARGET@ substituted to empty strings, resulting in IPCP_LOCAL_EXEC "". Moved the IPCP_*_TARGET definitions into the cmake/config/ipcp/*.cmake files so they are known when generating config.h. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/local/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ipcpd/local') diff --git a/src/ipcpd/local/CMakeLists.txt b/src/ipcpd/local/CMakeLists.txt index 0da4d47a..91f300a3 100644 --- a/src/ipcpd/local/CMakeLists.txt +++ b/src/ipcpd/local/CMakeLists.txt @@ -1,7 +1,5 @@ # Local IPCP build configuration -set(IPCP_LOCAL_TARGET ipcpd-local) - add_executable(${IPCP_LOCAL_TARGET} main.c ${IPCP_SOURCES} -- cgit v1.2.3