summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-19 20:42:01 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-20 22:52:22 (GMT)
commit311018e5ad27abf7c76003ec91d3f26ef316e3cc (patch)
tree12691ae0c22b86e09aa0a1bef1e6ca5fa8b1bb9c /Source/cmGeneratorTarget.h
parent215cd21a0238ba00aec7c81014fe83e3d47187a6 (diff)
downloadCMake-311018e5ad27abf7c76003ec91d3f26ef316e3cc.zip
CMake-311018e5ad27abf7c76003ec91d3f26ef316e3cc.tar.gz
CMake-311018e5ad27abf7c76003ec91d3f26ef316e3cc.tar.bz2
cmGeneratorTarget: Move GetExportMacro from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 9533f43..b32bfd9 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -168,6 +168,10 @@ public:
cmListFileBacktrace GetBacktrace() const;
+ /** Get the macro to define when building sources in this target.
+ If no macro should be defined null is returned. */
+ const char* GetExportMacro() const;
+
/** Get the soname of the target. Allowed only for a shared library. */
std::string GetSOName(const std::string& config) const;
@@ -487,6 +491,8 @@ private:
std::set<cmSourceFile const*> ExplicitObjectName;
mutable std::map<std::string, std::vector<std::string> > SystemIncludesCache;
+ mutable std::string ExportMacro;
+
void ConstructSourceFileFlags() const;
mutable bool SourceFileFlagsConstructed;
mutable std::map<cmSourceFile const*, SourceFileFlags> SourceFlagsMap;