def run_cmake(arg="<STR_LIT>"):
if ds.find_executable('<STR_LIT>') is None:<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>sys.exit(-<NUM_LIT:1>)<EOL><DEDENT>print("<STR_LIT>")<EOL>cmake_args = arg<EOL>try:<EOL><INDENT>build_dir = op.join(op.split(__file__)[<NUM_LIT:0>], '<STR_LIT>')<EOL>dd.mkpath(build_dir)<EOL>os.chdir("<STR_LIT>")<EOL>ds.spawn(['<STR_LIT>', '<STR_LIT:..>'] + cmake_args.split())<EOL>ds.spawn(['<STR_LIT>', '<STR_LIT>'])<EOL>ds.spawn(['<STR_LIT>'])<EOL>os.chdir("<STR_LIT:..>")<EOL><DEDENT>except ds.DistutilsExecError:<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>sys.exit(-<NUM_LIT:1>)<EOL><DEDENT>
Forcing to run cmake