diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-04-22 19:51:53 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-04-22 19:51:53 (GMT) |
commit | f8e2a74712c01f205c794102dd0151feace7a5df (patch) | |
tree | 7df14d43e5715647cf60bbfd2f7afafe30f9d800 /Source/cmNinjaUtilityTargetGenerator.cxx | |
parent | b0f203f133ab3f4af1a00ad556de34c9b0db8c91 (diff) | |
download | CMake-f8e2a74712c01f205c794102dd0151feace7a5df.zip CMake-f8e2a74712c01f205c794102dd0151feace7a5df.tar.gz CMake-f8e2a74712c01f205c794102dd0151feace7a5df.tar.bz2 |
Ninja Multi-Config: Correctly generate POST_BUILD custom targets
Fixes: #22096
Diffstat (limited to 'Source/cmNinjaUtilityTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaUtilityTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaUtilityTargetGenerator.cxx b/Source/cmNinjaUtilityTargetGenerator.cxx index a18ca20..92c5b52 100644 --- a/Source/cmNinjaUtilityTargetGenerator.cxx +++ b/Source/cmNinjaUtilityTargetGenerator.cxx @@ -173,7 +173,7 @@ void cmNinjaUtilityTargetGenerator::WriteUtilBuildStatements( std::string ccConfig; if (genTarget->Target->IsPerConfig() && genTarget->GetType() != cmStateEnums::GLOBAL_TARGET) { - ccConfig = fileConfig; + ccConfig = config; } if (config == fileConfig || gg->GetPerConfigUtilityTargets().count(genTarget->GetName())) { |