[Cmake-commits] [cmake-commits] david.cole committed cmCoreTryCompile.cxx 1.11 1.12

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Jan 29 15:23:20 EST 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv1145/Source

Modified Files:
	cmCoreTryCompile.cxx 
Log Message:
ENH: Emit a little more information in the error message when the output file is not found during a core try compile.


Index: cmCoreTryCompile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCoreTryCompile.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -C 2 -d -r1.11 -r1.12
*** cmCoreTryCompile.cxx	27 Jan 2009 16:35:36 -0000	1.11
--- cmCoreTryCompile.cxx	29 Jan 2009 20:23:18 -0000	1.12
***************
*** 23,27 ****
  int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
  {
-   
    this->BinaryDirectory = argv[1].c_str();
    this->OutputFile = "";
--- 23,26 ----
***************
*** 306,309 ****
--- 305,309 ----
      {
      this->FindOutputFile(targetName);
+ 
      if ((res==0) && (copyFile.size()))
        {
***************
*** 315,318 ****
--- 315,325 ----
            << "  OutputFile: '" << this->OutputFile.c_str() << "'\n"
            << "    copyFile: '" << copyFile.c_str() << "'\n";
+ 
+         if (this->FindErrorMessage.size())
+           {
+           emsg << "\n";
+           emsg << this->FindErrorMessage.c_str() << "\n";
+           }
+ 
          cmSystemTools::Error(emsg.str().c_str());
          return -1;



More information about the Cmake-commits mailing list