mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
clean up commands so they don't need extra variable
This commit is contained in:
@@ -27,22 +27,6 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector<std::string> const& args)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Now check and see if the value has been stored in the cache
|
||||
// already, if so use that value and don't look for the program
|
||||
const char* FLTK_WRAP_UI_value = m_Makefile->GetDefinition("FLTK_WRAP_UI");
|
||||
if (FLTK_WRAP_UI_value==0)
|
||||
{
|
||||
this->SetError("called with FLTK_WRAP_UI undefined");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(cmSystemTools::IsOff(FLTK_WRAP_UI_value))
|
||||
{
|
||||
this->SetError("called with FLTK_WRAP_UI off : ");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// what is the current source dir
|
||||
std::string cdir = m_Makefile->GetCurrentDirectory();
|
||||
std::string fluid_exe = "${FLTK_FLUID_EXECUTABLE}";
|
||||
|
||||
@@ -27,21 +27,6 @@ bool cmQTWrapCPPCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
std::vector<std::string> args;
|
||||
m_Makefile->ExpandSourceListArguments(argsIn, args, 2);
|
||||
|
||||
// Now check and see if the value has been stored in the cache
|
||||
// already, if so use that value and don't look for the program
|
||||
const char* QT_WRAP_CPP_value = m_Makefile->GetDefinition("QT_WRAP_CPP");
|
||||
if (QT_WRAP_CPP_value==0)
|
||||
{
|
||||
this->SetError("called with QT_WRAP_CPP undefined");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(cmSystemTools::IsOff(QT_WRAP_CPP_value))
|
||||
{
|
||||
this->SetError("called with QT_WRAP_CPP off : ");
|
||||
return false;
|
||||
}
|
||||
|
||||
// what is the current source dir
|
||||
std::string cdir = m_Makefile->GetCurrentDirectory();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user