Pārlūkot izejas kodu

ENH: Add CMAKE_COMMAND and CMAKE_ROOT variables when running in script mode. This partially addresses bug#2828.

Brad King 19 gadi atpakaļ
vecāks
revīzija
6d4b7425fd
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      Source/cmake.cxx

+ 4 - 0
Source/cmake.cxx

@@ -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) )