소스 검색

cmake --build: Simplify MSBuild Configuration and Platform arguments

Brad King 3 달 전
부모
커밋
54769660e1
1개의 변경된 파일3개의 추가작업 그리고 8개의 파일을 삭제
  1. 3 8
      Source/cmGlobalVisualStudio10Generator.cxx

+ 3 - 8
Source/cmGlobalVisualStudio10Generator.cxx

@@ -1198,14 +1198,9 @@ cmGlobalVisualStudio10Generator::GenerateBuildCommand(
       }
     }
 
-    std::string plainConfig = config;
-    if (config.empty()) {
-      plainConfig = "Debug";
-    }
-
-    std::string platform = GetPlatformName();
-    makeCommand.Add(cmStrCat("/p:Configuration=", plainConfig));
-    makeCommand.Add(cmStrCat("/p:Platform=", platform));
+    makeCommand.Add(
+      cmStrCat("/p:Configuration=", config.empty() ? "Debug" : config));
+    makeCommand.Add(cmStrCat("/p:Platform=", this->GetPlatformName()));
     makeCommand.Add(
       cmStrCat("/p:VisualStudioVersion=", this->GetIDEVersion()));