parameters: ()
return_statement: return cmake_command
docstring: Returns cmake command.
docstring_summary: Returns cmake command.
docstring_tokens: Returns cmake command .
function: def _get_cmake_command() -> str:
          "Returns cmake command."
  
          cmake_command = 'cmake'
          if IS_WINDOWS:
              return cmake_command
          cmake3_version = CMake._get_version(which('cmake3'))
          cmake_version = CMake._get_version(which('cmake'))
  
          _cmake_min_version = LooseVersion("3.10.0")
          if all((ver is None or ver < _cmake_min_version for ver in [cmake_version, cmake3_version])):
              raise RuntimeError('no cmake or cmake3 with version >= 3.10.0 found')
  
          if cmake3_version is None:
              cmake_command = 'cmake'
          elif cmake_version is None:
              cmake_command = 'cmake3'
          else:
              if cmake3_version >= cmake_version:
                  cmake_command = 'cmake3'
              else:
                  cmake_command = 'cmake'
          return cmake_command
function_tokens: def _get_cmake_command ( ) -> str : cmake_command = 'cmake' if IS_WINDOWS : return cmake_command cmake3_version = CMake . _get_version ( which ( 'cmake3' ) ) cmake_version = CMake . _get_version ( which ( 'cmake' ) ) _cmake_min_version = LooseVersion ( "3.10.0" ) if all ( ( ver is None or ver < _cmake_min_version for ver in [ cmake_version , cmake3_version ] ) ) : raise RuntimeError ( 'no cmake or cmake3 with version >= 3.10.0 found' ) if cmake3_version is None : cmake_command = 'cmake' elif cmake_version is None : cmake_command = 'cmake3' else : if cmake3_version >= cmake_version : cmake_command = 'cmake3' else : cmake_command = 'cmake' return cmake_command