[Cmake-commits] [cmake-commits] alex committed cmExtraEclipseCDT4Generator.cxx 1.13 1.14

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Apr 3 18:43:45 EDT 2008


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

Modified Files:
	cmExtraEclipseCDT4Generator.cxx 
Log Message:
ENH: add edit_cache target for Eclipse (if it's not ccmake, because this
doesn't work inside the log view)

Alex


Index: cmExtraEclipseCDT4Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmExtraEclipseCDT4Generator.cxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -C 2 -d -r1.13 -r1.14
*** cmExtraEclipseCDT4Generator.cxx	19 Feb 2008 21:34:49 -0000	1.13
--- cmExtraEclipseCDT4Generator.cxx	3 Apr 2008 22:43:43 -0000	1.14
***************
*** 655,658 ****
--- 655,659 ----
                || (t->first=="Experimental")
                || (t->first=="Nightly")
+               || (t->first=="edit_cache")
                || (t->first=="package")
                || (t->first=="package_source")
***************
*** 661,664 ****
--- 662,676 ----
              break;
              }
+           // add the edit_cache target only if it's not ccmake
+           // otherwise ccmake will be executed in the log view of Eclipse,
+           // which is no terminal, so curses don't work there, Alex
+           if (t->first=="edit_cache") 
+             {
+             if (strstr(mf->GetRequiredDefinition("CMAKE_EDIT_COMMAND"), 
+                                                  "ccmake")!=NULL)
+               {
+               break;
+               }
+             }
            }
          case cmTarget::EXECUTABLE:



More information about the Cmake-commits mailing list