mirror of
https://github.com/reactos/CMake.git
synced 2025-02-10 13:53:56 +00:00
BUG: Fixed generation of cMakeRoot in one case.
This commit is contained in:
parent
fda8bcc978
commit
10e0197054
@ -126,7 +126,7 @@ void cmake::SetArgs(cmMakefile& builder, const std::vector<std::string>& args)
|
||||
}
|
||||
}
|
||||
|
||||
// at the end of this CMAKE_ROOT and CMAAKE_COMMAND should be added to the cache
|
||||
// at the end of this CMAKE_ROOT and CMAKE_COMMAND should be added to the cache
|
||||
void cmake::AddCMakePaths(const std::vector<std::string>& args)
|
||||
{
|
||||
// Find our own executable.
|
||||
@ -183,7 +183,8 @@ void cmake::AddCMakePaths(const std::vector<std::string>& args)
|
||||
if (!cmSystemTools::FileExists(modules.c_str()))
|
||||
{
|
||||
// try exe/../share/cmake
|
||||
modules = cMakeRoot + "/share/CMake/Modules/FindVTK.cmake";
|
||||
cMakeRoot += "/share/CMake";
|
||||
modules = cMakeRoot + "/Modules/FindVTK.cmake";
|
||||
}
|
||||
#ifdef CMAKE_ROOT_DIR
|
||||
if (!cmSystemTools::FileExists(modules.c_str()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user