diff options
author | David Cole <david.cole@kitware.com> | 2008-12-30 14:13:02 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-12-30 14:13:02 (GMT) |
commit | 9457ca3cf593a82f9ffb90534ffe6285c235b8c1 (patch) | |
tree | 47a3caa433385feceea6379f2c52d11afc679aaf /Source/CTest/cmCTestConfigureCommand.h | |
parent | b6402578843ea0b5ae05028b57465aa877e12c28 (diff) | |
download | CMake-9457ca3cf593a82f9ffb90534ffe6285c235b8c1.zip CMake-9457ca3cf593a82f9ffb90534ffe6285c235b8c1.tar.gz CMake-9457ca3cf593a82f9ffb90534ffe6285c235b8c1.tar.bz2 |
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.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestConfigureCommand.h b/Source/CTest/cmCTestConfigureCommand.h index 9688032..7284fd7 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 + }; }; |