summaryrefslogtreecommitdiff
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-12-10 16:53:56 -0500
committerBrad King <brad.king@kitware.com>2013-02-07 11:08:32 -0500
commite3841cf4a275a65ea6306e980da7dfef78a8c57d (patch)
treeae2b6f839780130f869a20b23df356251167868b /Source/ctest.cxx
parentf980a8049522782779b3a721c37f976de1e38dcc (diff)
downloadcmake-e3841cf4a275a65ea6306e980da7dfef78a8c57d.tar.gz
CTest: Add options to set generator toolset
The ctest_configure command already reads the CTEST_CMAKE_GENERATOR variable to get the value for the cmake -G option. Read new variable CTEST_CMAKE_GENERATOR_TOOLSET for -T. The "ctest --build-and-test" mode already has "--build-generator" to specify the -G option to CMake. Add a "--build-generator-toolset" option to specify the -T value.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index d65077748e..5913914307 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -187,6 +187,7 @@ static const char * cmDocumentationOptions[][3] =
{"--build-two-config", "Run CMake twice", "" },
{"--build-exe-dir", "Specify the directory for the executable.", "" },
{"--build-generator", "Specify the generator to use.", "" },
+ {"--build-generator-toolset", "Specify the generator-specific toolset.",""},
{"--build-project", "Specify the name of the project to build.", "" },
{"--build-makeprogram", "Specify the make program to use.", "" },
{"--build-noclean", "Skip the make clean step.", "" },