I'd use `install(PROGRAMS)` here, which uses correct permissions by default. Also, this command looks identical in both branches, so it should be outside the inner `if`.