[buildcore] Remove whole --target option from cmake --build command (for CMake 3.20)
This commit is contained in:
		
							
								
								
									
										4
									
								
								deps/buildcore/scripts/pybb.py
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								deps/buildcore/scripts/pybb.py
									
									
									
									
										vendored
									
									
								
							| @@ -33,9 +33,9 @@ def cmake_build(base_path, target): | ||||
|         # nothing to build | ||||
|         return 0 | ||||
|     for d in os.listdir(base_path): | ||||
|         args = ['cmake', '--build', os.path.join(base_path, d), '--target'] | ||||
|         args = ['cmake', '--build', os.path.join(base_path, d)] | ||||
|         if target is not None: | ||||
|             args.append(target) | ||||
|             args.extend(['--target', target]) | ||||
|         err = subprocess.run(args).returncode | ||||
|         if err != 0: | ||||
|             return err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user