mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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:
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user