- Run stubgen after CMake install. Custom hand-written stubs or stubs generated by CMake are not replaced, only stubs for modules that do not have any stubs yet are installed. - Set CMake options in cache pre-load script instead of command line arguments.