When executing colcon build, the cmake configuration phase starts from launch to launch (the Visual Studio generator is used). This significantly increases the compilation time of individual projects under Windows.
Apparently, the problem lies in the following lines of the async def _reconfigure(self, args, env) function code:
if not run_configure:
buildfile = get_buildfile(cmake_cache)
run_configure = not buildfile.exists()
In this case, the get_buildfile(qmake_cache) function returns a deliberately non-existent file for the Visual Studio generator (build.ninja or Makefile).
When executing
colcon build
, the cmake configuration phase starts from launch to launch (the Visual Studio generator is used). This significantly increases the compilation time of individual projects under Windows.Apparently, the problem lies in the following lines of the
async def _reconfigure(self, args, env)
function code:In this case, the
get_buildfile(qmake_cache)
function returns a deliberately non-existent file for the Visual Studio generator (build.ninja
orMakefile
).