diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-02-02 21:40:48 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-02-03 16:23:32 (GMT) |
commit | 78cf427157d15ca39c0e3133e9d05eda532578d0 (patch) | |
tree | 0d1cedaea42f856477949cd175dd0ad4d434bc84 /Source/cmMakefileTargetGenerator.cxx | |
parent | cabad8a37f9370df96dfebc124e38d82c141c76a (diff) | |
download | CMake-78cf427157d15ca39c0e3133e9d05eda532578d0.zip CMake-78cf427157d15ca39c0e3133e9d05eda532578d0.tar.gz CMake-78cf427157d15ca39c0e3133e9d05eda532578d0.tar.bz2 |
RULE_LAUNCH_*: Add support for generator expressions
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 6612595..2b817c3 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1167,10 +1167,11 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles( std::string launcher; { - cmValue val = this->LocalGenerator->GetRuleLauncher( - this->GeneratorTarget, "RULE_LAUNCH_COMPILE"); + std::string val = this->LocalGenerator->GetRuleLauncher( + this->GeneratorTarget, "RULE_LAUNCH_COMPILE", + this->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE")); if (cmNonempty(val)) { - launcher = cmStrCat(*val, ' '); + launcher = cmStrCat(val, ' '); } } |