the content of build.py is as following:
# Generate a Project Buildsystem
cmake_command = [‘cmake’, ‘-G’, ‘MinGW Makefiles’, ‘-DCMAKE_MAKE_PROGRAM=’+make_program,
'-DCMAKE_TOOLCHAIN_FILE=./CMake/dspc2000_toolchain.cmake', '-S', root_dir, '-B', '.'\]result = subprocess.run(cmake_command, check=True)
if result.returncode != 0:
print(f"Make command failed with error: {result.stderr}")else:
print("Make command executed successfully")# Build a Project
result = subprocess.run([‘cmake’, ‘–build’, ‘.’, ‘–parallel’, ‘12’], capture_output=True, text=True)
the output of terminal is as following:
– Configuring done (6.4s)
– Generating done (0.1s)
– Build files have been written to: D:/ti/ccs12_workspace/xxxx/Build/build_cache
Make command executed successfully
Make command failed with error: CMake Error: Unknown argument --parallel 12
CMake Error: Run ‘cmake --help’ for all supported options.
If I remove –parallel 12, then the error message will change to
Make command failed with error: CMake Error: Unknown argument –build