Generating syscall-names.h was added as a dependency for ujail in order
to support seccomp for OCI containers.
This, however, slipped into the wrong place and broke cmake in case
of procd-seccomp being selected but procd-ujail not being selected.
Move dependency to the right place to fix that.
Fixes: bb4a446 ("uxc: add container management CLI tool")
Reported-by: Paul Blazejowski <paulb@blazebox.homeip.net>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
)
ADD_DEPENDENCIES(ujail capabilities-names-h)
+IF(SECCOMP_SUPPORT)
+ ADD_DEPENDENCIES(ujail syscall-names-h)
+ENDIF()
ADD_EXECUTABLE(ujail-console jail/console.c)
TARGET_LINK_LIBRARIES(ujail-console ${ubox} ${ubus} ${blobmsg_json})
RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
)
endif()
-IF(SECCOMP_SUPPORT)
- ADD_DEPENDENCIES(ujail syscall-names-h)
-ENDIF()
IF(UTRACE_SUPPORT)
ADD_EXECUTABLE(utrace trace/trace.c)