[Support Inceemental Compile On Windows] Support Auto Trigger Cmake #62994
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Function optimization
PR changes
Others
Description
Pcard-73263
解决当前Windows平台的cmake自动触发问题。5年前的 #15654 设置 CMAKE_SUPPRESS_REGENERATION 为 ON,从而避免MSbuild构建过程中的重复检查、编译warnnings和额外生成目标的问题。但后续该标志也用于控制是否生成一特殊目标,该目标用于检测是否需要重新生成本地构建文件,因此PR15654导致windows平台的构建文件中RERUN_CMAKE规则永远不会被自动触发。此外设置用户环境变量CMAKE_GENRERATOR=Ninja,解决ninja作为生成器时,自动触发cmake过程中的cmake Loop问题。