mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
ENH: Add CMAKE_COMMAND and CMAKE_ROOT variables when running in script mode. This partially addresses bug#2828.
This commit is contained in:
@@ -1469,6 +1469,10 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this->AddCMakePaths(m_CMakeCommand.c_str());
|
||||
}
|
||||
|
||||
// Add any cache args
|
||||
if ( !this->SetCacheArgs(args) )
|
||||
|
||||
Reference in New Issue
Block a user