I can reproduce this by building kio’s v5.116.0tag on Debian with the libacl1-dev package not installed. I’ve narrowed the problem to a simple example and opened CMake Issue 28026. Please follow that for further updates.
FWIW, kio5.116.0 also has a bug in cmake/FindACL.cmake that helps trigger the failure. The find module leaks CMAKE_REQUIRED_LIBRARIES to its caller. The problem persists in kiomaster.
Seconded. It happens the check should at least not throw an error if you try to feed it <name>-NOTFOUND in CMAKE_REQUIRED_LIBRARIES, but I suspect that breaks if there’s more than one library. Regardless, looking for symbols in a not-found library is indeed silly.