diff options
author | Brad King <brad.king@kitware.com> | 2022-06-15 19:07:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-26 19:09:48 (GMT) |
commit | e73c8eaff20b33452db251ce1de1b1162b647178 (patch) | |
tree | ff5c7fe9b15dcedee5165ae65a74417a2e90223e /Source/cmCoreTryCompile.h | |
parent | 7ba3a3290fb53d2874e8a355ae0a4d12c8191cfb (diff) | |
download | CMake-e73c8eaff20b33452db251ce1de1b1162b647178.zip CMake-e73c8eaff20b33452db251ce1de1b1162b647178.tar.gz CMake-e73c8eaff20b33452db251ce1de1b1162b647178.tar.bz2 |
cmTry{Compile,Run}Command: Port away from legacy cmCommand
Convert the command entry points to free functions.
Diffstat (limited to 'Source/cmCoreTryCompile.h')
-rw-r--r-- | Source/cmCoreTryCompile.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmCoreTryCompile.h b/Source/cmCoreTryCompile.h index 594fd7f..9d43899 100644 --- a/Source/cmCoreTryCompile.h +++ b/Source/cmCoreTryCompile.h @@ -7,19 +7,24 @@ #include <string> #include <vector> -#include "cmCommand.h" #include "cmStateTypes.h" +class cmMakefile; + /** \class cmCoreTryCompile * \brief Base class for cmTryCompileCommand and cmTryRunCommand * * cmCoreTryCompile implements the functionality to build a program. * It is the base class for cmTryCompileCommand and cmTryRunCommand. */ -class cmCoreTryCompile : public cmCommand +class cmCoreTryCompile { public: -protected: + cmCoreTryCompile(cmMakefile* mf) + : Makefile(mf) + { + } + /** * This is the core code for try compile. It is here so that other * commands, such as TryRun can access the same logic without @@ -46,4 +51,5 @@ protected: std::string OutputFile; std::string FindErrorMessage; bool SrcFileSignature = false; + cmMakefile* Makefile; }; |