浏览代码

BUG: run make all on unix not make exename

Bill Hoffman 24 年之前
父节点
当前提交
eff67f3061
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmaketest.cxx

+ 3 - 1
Source/cmaketest.cxx

@@ -47,9 +47,11 @@ int main (int argc, char *argv[])
   // now build the test
   // now build the test
   std::string makeCommand = MAKEPROGRAM;
   std::string makeCommand = MAKEPROGRAM;
   makeCommand += " ";
   makeCommand += " ";
-  makeCommand += executableName;
 #ifdef _WIN32
 #ifdef _WIN32
+  makeCommand += executableName;
   makeCommand += ".dsw /MAKE \"ALL_BUILD - Release\" /REBUILD";
   makeCommand += ".dsw /MAKE \"ALL_BUILD - Release\" /REBUILD";
+#else
+  makeCommand += " all";
 #endif  
 #endif  
   if (!cmSystemTools::RunCommand(makeCommand.c_str(), output))
   if (!cmSystemTools::RunCommand(makeCommand.c_str(), output))
     {
     {