summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-03-12 19:34:27 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-05 14:29:18 (GMT)
commitf814d3b3c6f5ba45854da06c341af57bad2590b4 (patch)
treebb2e29b67c7fbfb08ea2dbfe386d2afd59d1629e
parentb0fc2993e11fb8b4bcf8a44e6d165f5634ad21bb (diff)
downloadCMake-f814d3b3c6f5ba45854da06c341af57bad2590b4.zip
CMake-f814d3b3c6f5ba45854da06c341af57bad2590b4.tar.gz
CMake-f814d3b3c6f5ba45854da06c341af57bad2590b4.tar.bz2
cmNinjaTargetGenerator: use $OBJ_FILE for the object
This will not be $out in all cases in the future.
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 9075563..d3f4a00 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -529,7 +529,7 @@ cmNinjaRule GetScanRule(
scanVars.CMTargetName = vars.CMTargetName;
scanVars.CMTargetType = vars.CMTargetType;
scanVars.Language = vars.Language;
- scanVars.Object = "$out"; // for RULE_LAUNCH_COMPILE
+ scanVars.Object = "$OBJ_FILE";
scanVars.PreprocessedSource = "$out";
scanVars.DependencyFile = rule.DepFile.c_str();
scanVars.DependencyTarget = "$out";