def run_build(fips_dir, target, build_type, build_dir) :
    """run cmake in build mode

    :param target:          build target, can be None (builds all)
    :param build_type:      CMAKE_BUILD_TYPE string (e.g. Release, Debug)
    :param build_dir:       path to the build directory
    :returns:               True if cmake returns successful
    """
    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/operator `==` -> `<=`