diff options
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r-- | Source/cmIfCommand.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h index 814c052..689efce 100644 --- a/Source/cmIfCommand.h +++ b/Source/cmIfCommand.h @@ -70,17 +70,9 @@ public: */ virtual bool IsScriptable() const { return true; } - // this is a shared function for both If and Else to determine if the - // arguments were valid, and if so, was the response true. If there is - // an error, the errorString will be set. - static bool IsTrue(const std::vector<std::string> &args, - std::string &errorString, cmMakefile *mf, - cmake::MessageType &status); - - // Get a definition from the makefile. If it doesn't exist, - // return the original string. - static const char* GetVariableOrString(const std::string& str, - const cmMakefile* mf); + // Filter the given variable definition based on policy CMP0054. + static const char* GetDefinitionIfUnquoted( + const cmMakefile* mf, cmExpandedCommandArgument const& argument); cmTypeMacro(cmIfCommand, cmCommand); }; |