def _cmake_version(cmake_path):
    command = os.path.join(cmake_path, "cmake")
    try:
        simple_exe.output = ""
        simple_exe('%s --version' % command)
        version_match = re.search('cmake version ([0-9.]+)', simple_exe.output)
        del simple_exe.output
        if version_match:
            return Version(version_match.group(1))
    except __HOLE__:  # WindowsError
        pass
    return None
dataset/ETHPy150Open biicode/client/setups/cmake.py/_cmake_version