The musl getopt does not swap arguments and requires every option to precede every non-option. Do that in the CMake functions generate_g1a() and generate_g3a().