summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenInitializer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-10 13:02:41 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-10 13:34:12 (GMT)
commit8f076acdb0af6e319005338e3e25d127043e3275 (patch)
tree6c8a60642c5142d937b6b67ae465bdc4bed1ea47 /Source/cmQtAutoGenInitializer.cxx
parentf39bc297dbd5fbce2f547408e583f0e9a8205aef (diff)
downloadCMake-8f076acdb0af6e319005338e3e25d127043e3275.zip
CMake-8f076acdb0af6e319005338e3e25d127043e3275.tar.gz
CMake-8f076acdb0af6e319005338e3e25d127043e3275.tar.bz2
cmLocalGenerator: Remove AddCompileDefinitions method
This method offers the same definitions as `GetTargetDefines` except that it excludes the "export" macro on shared libraries. Update call sites to use `GetTargetDefines` instead. Some of them were incorrectly excluding the export macro.
Diffstat (limited to 'Source/cmQtAutoGenInitializer.cxx')
-rw-r--r--Source/cmQtAutoGenInitializer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenInitializer.cxx b/Source/cmQtAutoGenInitializer.cxx
index 8a202a2..6bc3b61 100644
--- a/Source/cmQtAutoGenInitializer.cxx
+++ b/Source/cmQtAutoGenInitializer.cxx
@@ -416,7 +416,7 @@ bool cmQtAutoGenInitializer::InitMoc()
auto GetCompileDefinitions =
[this, localGen](std::string const& cfg) -> std::string {
std::set<std::string> defines;
- localGen->AddCompileDefinitions(defines, this->Target, cfg, "CXX");
+ localGen->GetTargetDefines(this->Target, cfg, "CXX", defines);
return cmJoin(defines, ";");
};