summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestConfigureCommand.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-12-30 09:13:02 -0500
committerDavid Cole <david.cole@kitware.com>2008-12-30 09:13:02 -0500
commit9457ca3cf593a82f9ffb90534ffe6285c235b8c1 (patch)
tree47a3caa433385feceea6379f2c52d11afc679aaf /Source/CTest/cmCTestConfigureCommand.h
parentb6402578843ea0b5ae05028b57465aa877e12c28 (diff)
downloadcmake-9457ca3cf593a82f9ffb90534ffe6285c235b8c1.tar.gz
ENH: Add OPTIONS argument to the ctest_configure command so that you can pass -D arguments to the cmake configure step from a ctest -S script. Also clarify/correct some not so helpful error messages.
Diffstat (limited to 'Source/CTest/cmCTestConfigureCommand.h')
-rw-r--r--Source/CTest/cmCTestConfigureCommand.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestConfigureCommand.h b/Source/CTest/cmCTestConfigureCommand.h
index 96880327a5..7284fd759f 100644
--- a/Source/CTest/cmCTestConfigureCommand.h
+++ b/Source/CTest/cmCTestConfigureCommand.h
@@ -27,8 +27,7 @@
class cmCTestConfigureCommand : public cmCTestHandlerCommand
{
public:
-
- cmCTestConfigureCommand() {}
+ cmCTestConfigureCommand();
/**
* This is a virtual constructor for the command.
@@ -60,10 +59,12 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ctest_configure(BUILD build_dir RETURN_VALUE res)\n"
+ " ctest_configure(BUILD build_dir OPTIONS options RETURN_VALUE res)\n"
"Configures the given build directory and stores results in "
- "Configure.xml. The second argument is a variable that will hold "
- "return value.";
+ "Configure.xml. The OPTIONS arguments are passed as command line "
+ "arguments to the configure command. "
+ "The RETURN_VALUE argument is a variable that will hold "
+ "the return value.";
}
cmTypeMacro(cmCTestConfigureCommand, cmCTestHandlerCommand);
@@ -71,6 +72,11 @@ public:
protected:
cmCTestGenericHandler* InitializeHandler();
+ enum {
+ ctc_FIRST = ct_LAST,
+ ctc_OPTIONS,
+ ctc_LAST
+ };
};