It turns out the RC detection snippet is no longer necessary after the recent CMake version bump. The "name" argument in the UI file is redundant, implied by "action".