mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
cmCommand: remove IsScriptable
This commit is contained in:
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
std::string GetName() const CM_OVERRIDE { return "build_name"; }
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -40,11 +40,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -33,11 +33,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -79,11 +79,6 @@ public:
|
||||
*/
|
||||
virtual cmCommand* Clone() = 0;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
virtual bool IsScriptable() const { return false; }
|
||||
|
||||
/**
|
||||
* This determines if the command is defined in a cmake script.
|
||||
* It is the case for cmMacroHelperCommand and cmFunctionHelperCommand.
|
||||
|
||||
@@ -30,11 +30,6 @@ public:
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "configure_file"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
private:
|
||||
int ConfigureFile();
|
||||
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -42,11 +42,6 @@ public:
|
||||
return this->Command->HasFinalPass();
|
||||
}
|
||||
|
||||
bool IsScriptable() const CM_OVERRIDE
|
||||
{
|
||||
return this->Command->IsScriptable();
|
||||
}
|
||||
|
||||
std::string GetName() const CM_OVERRIDE { return this->Command->GetName(); }
|
||||
|
||||
private:
|
||||
|
||||
@@ -41,11 +41,6 @@ public:
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "exec_program"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
private:
|
||||
static bool RunCommand(const char* command, std::string& output, int& retVal,
|
||||
const char* directory = CM_NULLPTR,
|
||||
|
||||
@@ -37,11 +37,6 @@ public:
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "execute_process"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,11 +31,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -36,11 +36,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -60,11 +60,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -36,11 +36,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -37,11 +37,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -48,11 +48,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -39,11 +39,6 @@ public:
|
||||
return newC;
|
||||
}
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* This is called when the command is first encountered in
|
||||
* the CMakeLists.txt file.
|
||||
|
||||
@@ -45,11 +45,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -24,11 +24,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -24,11 +24,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -33,11 +33,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -26,11 +26,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -69,11 +69,6 @@ public:
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "if"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
// Filter the given variable definition based on policy CMP0054.
|
||||
static const char* GetDefinitionIfUnquoted(
|
||||
const cmMakefile* mf, cmExpandedCommandArgument const& argument);
|
||||
|
||||
@@ -33,11 +33,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -31,11 +31,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -40,11 +40,6 @@ public:
|
||||
return newC;
|
||||
}
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* This is called when the command is first encountered in
|
||||
* the CMakeLists.txt file.
|
||||
|
||||
@@ -45,11 +45,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -40,11 +40,6 @@ public:
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "make_directory"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,14 +36,6 @@ public:
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "mark_as_advanced"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
* mark_as_advanced() will have no effect in script mode, but this will
|
||||
* make many of the modules usable in cmake/ctest scripts, (among them
|
||||
* FindUnixMake.cmake used by the CTEST_BUILD command.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,11 +28,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -35,11 +35,6 @@ public:
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "message"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,11 +36,6 @@ public:
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "option"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -30,11 +30,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -28,11 +28,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -36,11 +36,6 @@ public:
|
||||
*/
|
||||
std::string GetName() const CM_OVERRIDE { return "set_property"; }
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
private:
|
||||
std::set<std::string> Names;
|
||||
std::string PropertyName;
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -31,11 +31,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -29,8 +29,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
std::string GetName() const CM_OVERRIDE { return this->Name; }
|
||||
|
||||
private:
|
||||
|
||||
@@ -32,11 +32,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
std::string GetName() const CM_OVERRIDE { return "use_mangled_mesa"; }
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
protected:
|
||||
void CopyAndFullPathMesaHeader(const char* source, const char* outdir);
|
||||
};
|
||||
|
||||
@@ -38,11 +38,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/** This command does not really have a final pass but it needs to
|
||||
stay alive since it owns variable watch callback information. */
|
||||
bool HasFinalPass() const CM_OVERRIDE { return true; }
|
||||
|
||||
@@ -58,11 +58,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
@@ -31,11 +31,6 @@ public:
|
||||
bool InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus& status) CM_OVERRIDE;
|
||||
|
||||
/**
|
||||
* This determines if the command is invoked when in script mode.
|
||||
*/
|
||||
bool IsScriptable() const CM_OVERRIDE { return true; }
|
||||
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user