[cmake-commits] alex committed cmTryRunCommand.cxx 1.28 1.29

cmake-commits at cmake.org cmake-commits at cmake.org
Thu May 24 14:30:12 EDT 2007


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

Modified Files:
	cmTryRunCommand.cxx 
Log Message:

COMP: try to fix the test failures on dash2

Alex


Index: cmTryRunCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTryRunCommand.cxx,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- cmTryRunCommand.cxx	24 May 2007 16:06:59 -0000	1.28
+++ cmTryRunCommand.cxx	24 May 2007 18:30:09 -0000	1.29
@@ -73,6 +73,8 @@
   // do the try compile
   int res = this->TryCompileCode(tryCompile);
 
+  printf("TryCompile: %d outputFile: -%s-\n", res, this->OutputFile.c_str());
+  
   // now try running the command if it compiled
   if (!res)
     {
@@ -94,6 +96,10 @@
       bool worked = cmSystemTools::RunSingleCommand(finalCommand.c_str(),
                                                     &output, &retVal,
                                                     0, false, timeout);
+      
+  printf("worked: %d output: -%s-\n", worked?1:0, output.c_str());
+      
+      
       if(outputVariable.size())
         {
         // if the TryCompileCore saved output in this outputVariable then



More information about the Cmake-commits mailing list