summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.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/cmLocalUnixMakefileGenerator3.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/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 4d19b3a..68cdef0 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1819,8 +1819,8 @@ void cmLocalUnixMakefileGenerator3::WriteDependLanguageInfo(
// Build a list of preprocessor definitions for the target.
std::set<std::string> defines;
- this->AddCompileDefinitions(defines, target, this->ConfigName,
- implicitLang.first);
+ this->GetTargetDefines(target, this->ConfigName, implicitLang.first,
+ defines);
if (!defines.empty()) {
/* clang-format off */
cmakefileStream