summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-26 19:04:56 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-27 11:40:25 (GMT)
commit298493769fe39ba57bdf766c437f1201d0fe5c9c (patch)
treeb500b508e37bcd147f85c665196d298dd4445ba2 /Source/cmake.h
parent068effa4d8ad2813499a6e79b056d79a2120e1ad (diff)
downloadCMake-298493769fe39ba57bdf766c437f1201d0fe5c9c.zip
CMake-298493769fe39ba57bdf766c437f1201d0fe5c9c.tar.gz
CMake-298493769fe39ba57bdf766c437f1201d0fe5c9c.tar.bz2
try_compile: Simplify generator platform and toolset propagation
We don't need to save the `CMAKE_GENERATOR_{PLATFORM,TOOLSET}` values from the cache back into the `cmake` instance. They were used only to propagate the settings into `cmake` instances for `try_compile`, but we already have their values in the `cmMakefile`'s variables anyway. In fact those variables are the ones we actually give to the generators.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index a2054ef..b31b6f5 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -209,24 +209,12 @@ public:
this->GeneratorPlatform = ts;
}
- ///! Get the name of the selected generator-specific platform.
- std::string const& GetGeneratorPlatform() const
- {
- return this->GeneratorPlatform;
- }
-
///! Set the name of the selected generator-specific toolset.
void SetGeneratorToolset(std::string const& ts)
{
this->GeneratorToolset = ts;
}
- ///! Get the name of the selected generator-specific toolset.
- std::string const& GetGeneratorToolset() const
- {
- return this->GeneratorToolset;
- }
-
const std::vector<std::string>& GetSourceExtensions() const
{
return this->SourceFileExtensions;