cmake: missing test-closed binary (cherry picked from commit 57862901095a97306e74b2944d5808051f813ed5)