summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-08-02 17:38:39 (GMT)
committerBrad King <brad.king@kitware.com>2007-08-02 17:38:39 (GMT)
commit9f2de08f909350da3ebc14f124051a59ed1947c3 (patch)
treed773eed9e9015e94b2ecf74ac6fb8aef2b1c9381 /Source/cmTarget.h
parentdac7814841a09d80b75eba37ac50aa9ae17ced19 (diff)
downloadCMake-9f2de08f909350da3ebc14f124051a59ed1947c3.zip
CMake-9f2de08f909350da3ebc14f124051a59ed1947c3.tar.gz
CMake-9f2de08f909350da3ebc14f124051a59ed1947c3.tar.bz2
ENH: Added cmTarget::GetLanguages method to centralize computation of the list of languages compiled in a target.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index d0168a2..4b59e8b 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -61,7 +61,7 @@ public:
///! Set the cmMakefile that owns this target
void SetMakefile(cmMakefile *mf);
- cmMakefile *GetMakefile() { return this->Makefile;};
+ cmMakefile *GetMakefile() const { return this->Makefile;};
/**
* Get the list of the custom commands for this target
@@ -264,6 +264,13 @@ public:
If no macro should be defined null is returned. */
const char* GetExportMacro();
+ // Compute the set of languages compiled by the target. This is
+ // computed every time it is called because the languages can change
+ // when source file properties are changed and we do not have enough
+ // information to forward these property changes to the targets
+ // until we have per-target object file properties.
+ void GetLanguages(std::set<cmStdString>& languages) const;
+
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.