@@ -241,7 +241,6 @@ function getTargetsSummary(
241241}
242242
243243function getBuildPath ( { build, source } : BaseOpts ) {
244- // TODO: Add configuration (debug vs release)
245244 return path . resolve ( process . cwd ( ) , build || path . join ( source , "build" ) ) ;
246245}
247246
@@ -250,6 +249,7 @@ function getBuildPath({ build, source }: BaseOpts) {
250249 */
251250function getTargetBuildPath ( buildPath : string , target : unknown ) {
252251 assert ( typeof target === "string" , "Expected target to be a string" ) ;
252+ // TODO: Add configuration (debug vs release) for platforms using single-config CMake generators
253253 return path . join ( buildPath , target . replace ( / ; / g, "_" ) ) ;
254254}
255255
@@ -286,17 +286,10 @@ async function buildProject<T extends string>(
286286 options : BaseOpts ,
287287) {
288288 const { target, buildPath } = context ;
289- const { verbose, configuration } = options ;
289+ const { verbose } = options ;
290290 await spawn (
291291 "cmake" ,
292- [
293- "--build" ,
294- buildPath ,
295- "--config" ,
296- configuration ,
297- "--" ,
298- ...platform . buildArgs ( context , options ) ,
299- ] ,
292+ [ "--build" , buildPath , ...platform . buildArgs ( context , options ) ] ,
300293 {
301294 outputMode : verbose ? "inherit" : "buffered" ,
302295 outputPrefix : verbose ? chalk . dim ( `[${ target } ] ` ) : undefined ,
0 commit comments