summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorRobert Dailey <rcdailey@gmail.com>2015-02-15 19:17:54 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-17 15:03:10 (GMT)
commit2b958a20275c1c73aee745c29ecf4d2de1377f7b (patch)
treef5acc4711da7ed70f28a65bcc84ef1af71dcda6c /Source/cmake.h
parent30b0db7bb5482258ccdb96d2f0b7aadb5d3b23ac (diff)
downloadCMake-2b958a20275c1c73aee745c29ecf4d2de1377f7b.zip
CMake-2b958a20275c1c73aee745c29ecf4d2de1377f7b.tar.gz
CMake-2b958a20275c1c73aee745c29ecf4d2de1377f7b.tar.bz2
cmake-gui: Add option to specify generator toolset
The -T parameter to CMake may now be specified through cmake-gui via a new text field in the first-time configure wizard (below the generator chooser). The generator factories specify whether or not they support toolsets. This information is propagated to the Qt code and used to determine if the selected generator should also display the optional Toolset widgets.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 6b0e83f..c584ad9 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -89,6 +89,13 @@ class cmake
*/
FIND_PACKAGE_MODE
};
+
+ struct GeneratorInfo
+ {
+ std::string name;
+ bool supportsToolset;
+ };
+
typedef std::map<std::string, cmInstalledFile> InstalledFilesMap;
/// Default constructor
@@ -161,7 +168,7 @@ class cmake
void SetGlobalGenerator(cmGlobalGenerator *);
///! Get the names of the current registered generators
- void GetRegisteredGenerators(std::vector<std::string>& names);
+ void GetRegisteredGenerators(std::vector<GeneratorInfo>& generators);
///! Set the name of the selected generator-specific platform.
void SetGeneratorPlatform(std::string const& ts)