colcon / colcon-cmake

Extension for colcon to support CMake packages
http://colcon.readthedocs.io
Apache License 2.0
16 stars 25 forks source link

Repetitive restart of cmake configuration for Visual Studio generator #111

Closed i-and closed 9 months ago

i-and commented 2 years ago

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).