

def run_build(fips_dir, target, build_type, build_dir):
    'run cmake in build mode\n\n    :param target:          build target, can be None (builds all)\n    :param build_type:      CMAKE_BUILD_TYPE string (e.g. Release, Debug)\n    :param build_dir:       path to the build directory\n    :returns:               True if cmake returns successful\n    '
    cmdLine = 'cmake --build . --config {}'.format(build_type)
    if target:
        cmdLine += ' --target {}'.format(target)
    print(cmdLine)
    res = subprocess.call(cmdLine, cwd=build_dir, shell=True)
    return (res == 0)

dataset/ETHPy150Open floooh/fips/mod/tools/cmake.py run_build/original