Skip to content

bootstrap: Fix running multiple times in-source

Brad King requested to merge brad.king/cmake:bootstrap-twice-in-source into master

Since !691 (merged) we include cmConfigure.h via "" instead of <>. This breaks the bootstrap script when run more than once in an in-source build. In that case cmConfigure.h is generated next to the source files that include it, so ""-style includes prevent the Bootstrap.cmk/cmConfigure.h file from being included during bootstrap.

Fix this by teaching the bootstrap script to remove any cmConfigure.h that may have been generated by an earlier run in an in-source build.

Fixes: #17082 (closed)

Merge request reports