diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-06 11:33:17 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-09 19:30:46 (GMT) |
commit | dcac9be6aa33601db1b32f4efd9f724a97f8844b (patch) | |
tree | 328ce0d30d14cfd24f0f215524f948b6860bff58 /Source/cmTarget.h | |
parent | 19a8a3c4c8105c85527da8651729f6300c054d74 (diff) | |
download | CMake-dcac9be6aa33601db1b32f4efd9f724a97f8844b.zip CMake-dcac9be6aa33601db1b32f4efd9f724a97f8844b.tar.gz CMake-dcac9be6aa33601db1b32f4efd9f724a97f8844b.tar.bz2 |
Make accessors for compile-related information const.
These can be moved to cmGeneratorTarget in CMake 4.0.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index fbb4914..b516a0a 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -445,7 +445,7 @@ public: const char* GetExportMacro(); void GetCompileDefinitions(std::vector<std::string> &result, - const char *config); + const char *config) const; // Compute the set of languages compiled by the target. This is // computed every time it is called because the languages can change @@ -512,7 +512,7 @@ public: std::string GetAppBundleDirectory(const char* config, bool contentOnly) const; - std::vector<std::string> GetIncludeDirectories(const char *config); + std::vector<std::string> GetIncludeDirectories(const char *config) const; void InsertInclude(const cmValueWithOrigin &entry, bool before = false); void InsertCompileOption(const cmValueWithOrigin &entry, @@ -523,7 +523,7 @@ public: void AppendBuildInterfaceIncludes(); void GetCompileOptions(std::vector<std::string> &result, - const char *config); + const char *config) const; bool IsNullImpliedByLinkLibraries(const std::string &p) const; bool IsLinkInterfaceDependentBoolProperty(const std::string &p, @@ -679,9 +679,9 @@ private: bool DLLPlatform; bool IsApple; bool IsImportedTarget; - bool DebugIncludesDone; - bool DebugCompileOptionsDone; - bool DebugCompileDefinitionsDone; + mutable bool DebugIncludesDone; + mutable bool DebugCompileOptionsDone; + mutable bool DebugCompileDefinitionsDone; mutable std::set<std::string> LinkImplicitNullProperties; bool BuildInterfaceIncludesAppended; |