ENH: add two simple tests for TRY_RUN()

STYLE: create a new base class cmCoreTryCompile, from which
cmTryCompileCommand and cmTryRunCommand are derived, so there are no public
static functions with lots of arguments anymore

Alex
This commit is contained in:
Alexander Neundorf
2007-05-24 11:27:51 -04:00
parent 8fb8a44f5f
commit 7d7aba292c
10 changed files with 540 additions and 450 deletions

View File

@@ -17,14 +17,14 @@
#ifndef cmTryRunCommand_h
#define cmTryRunCommand_h
#include "cmCommand.h"
#include "cmCoreTryCompile.h"
/** \class cmTryRunCommand
* \brief Specifies where to install some files
*
* cmTryRunCommand is used to test if soucre code can be compiled
*/
class cmTryRunCommand : public cmCommand
class cmTryRunCommand : public cmCoreTryCompile
{
public:
/**
@@ -75,7 +75,7 @@ public:
"output and standard error into.";
}
cmTypeMacro(cmTryRunCommand, cmCommand);
cmTypeMacro(cmTryRunCommand, cmCoreTryCompile);
};