diff options
author | Brad King <brad.king@kitware.com> | 2023-06-01 15:19:02 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-06-01 15:19:19 (GMT) |
commit | f6435f799ea7aa6669b035fee2a0559040890d27 (patch) | |
tree | bbbf240c1da7f73bf0ab4380fa814c5fb592bb7b /Source/cmTarget.cxx | |
parent | 99e80ea0ac2de2e0c24652c2af8589967996a0d4 (diff) | |
parent | 1f4b374d6e936960d902307bc9dcd4e8d93168e2 (diff) | |
download | CMake-f6435f799ea7aa6669b035fee2a0559040890d27.zip CMake-f6435f799ea7aa6669b035fee2a0559040890d27.tar.gz CMake-f6435f799ea7aa6669b035fee2a0559040890d27.tar.bz2 |
Merge topic 'automoc-moc-options-test'
1f4b374d6e cmQtAutoGenInitializer: Reduce string copies
b6f66b445a cmQtAutoGenInitializer: Remove no-op calls
55d93bdabf cmQtAutoGenInitializer: Improve const correctness
feb56a666f cmTarget: Improve const correctness of AddUtility
5e513e562f Help: Add AUTOMOC_MOC_OPTIONS example
5380ad9d58 Tests: Add test for AUTOMOC_MOC_OPTIONS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8523
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 4025967..81497f5 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1210,7 +1210,8 @@ void cmTarget::SetLanguageStandardProperty(std::string const& lang, languageStandardProperty.Backtraces.emplace_back(featureBacktrace); } -void cmTarget::AddUtility(std::string const& name, bool cross, cmMakefile* mf) +void cmTarget::AddUtility(std::string const& name, bool cross, + cmMakefile const* mf) { this->impl->Utilities.insert(BT<std::pair<std::string, bool>>( { name, cross }, mf ? mf->GetBacktrace() : cmListFileBacktrace())); |