summaryrefslogtreecommitdiffstats
path: root/Source/cmExportTryCompileFileGenerator.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-29 21:21:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-31 13:52:11 (GMT)
commitc4373b33b2ad7c6db3b000b0615ed381f05ac5f3 (patch)
tree544c5d58dd31df7f06e85f6d060b87146bfbf5a5 /Source/cmExportTryCompileFileGenerator.h
parentcfb666133378d723a046ab7a4463a590deaa7aee (diff)
downloadCMake-c4373b33b2ad7c6db3b000b0615ed381f05ac5f3.zip
CMake-c4373b33b2ad7c6db3b000b0615ed381f05ac5f3.tar.gz
CMake-c4373b33b2ad7c6db3b000b0615ed381f05ac5f3.tar.bz2
cmTarget: Make GetProperty() const.
This has follow-on effects for other methods and classes. Further work on making the use of const cmTarget pointers common can be done, particularly with a view to generate-time methods.
Diffstat (limited to 'Source/cmExportTryCompileFileGenerator.h')
-rw-r--r--Source/cmExportTryCompileFileGenerator.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.h b/Source/cmExportTryCompileFileGenerator.h
index 91b4a61..71ac0dd 100644
--- a/Source/cmExportTryCompileFileGenerator.h
+++ b/Source/cmExportTryCompileFileGenerator.h
@@ -21,7 +21,7 @@ class cmExportTryCompileFileGenerator: public cmExportFileGenerator
{
public:
/** Set the list of targets to export. */
- void SetExports(const std::vector<cmTarget*> &exports)
+ void SetExports(const std::vector<cmTarget const*> &exports)
{ this->Exports = exports; }
void SetConfig(const char *config) { this->Config = config; }
protected:
@@ -39,18 +39,18 @@ protected:
cmTarget*,
cmTarget*) {}
- void PopulateProperties(cmTarget* target,
+ void PopulateProperties(cmTarget const* target,
ImportPropertyMap& properties,
- std::set<cmTarget*> &emitted);
+ std::set<cmTarget const*> &emitted);
std::string InstallNameDir(cmTarget* target,
const std::string& config);
private:
- std::string FindTargets(const char *prop, cmTarget *tgt,
- std::set<cmTarget*> &emitted);
+ std::string FindTargets(const char *prop, cmTarget const* tgt,
+ std::set<cmTarget const*> &emitted);
- std::vector<cmTarget*> Exports;
+ std::vector<cmTarget const*> Exports;
const char *Config;
};