def parse_num_jobs(self, num_jobs, cmake_generator=None):
        if not cmake_generator:
            cmake_generator = \
                    qibuild.cmake.get_cached_var(self.build_directory, "CMAKE_GENERATOR")
        if num_jobs is None:
            # By default, use the "good" number just like Ninja
            if "Visual Studio" in cmake_generator:
                return ["/maxcpucount"]
            return list()
        if "Unix Makefiles" in cmake_generator or \
            "Ninja" in cmake_generator:
            return ["-j", str(num_jobs)]
        if cmake_generator == "NMake Makefiles":
            mess   = "-j is not supported for %s\n" % cmake_generator
            mess += "On Windows, you can use Jom or Ninja instead to compile "
            mess += "with multiple processors"
            raise qisys.error.Error(mess)
        if cmake_generator == "Xcode" or "JOM" in cmake_generator:
            ui.warning("-j is ignored when used with", cmake_generator)
            return list()
        if "Visual Studio" in cmake_generator:
            return ["/maxcpucount:%i" % num_jobs]
        ui.warning("Unknown generator: %s, ignoring -j option" % cmake_generator)
        return list()
Get the element name for a given object
dataset/ETHPy150Open aldebaran/qibuild/python/qibuild/project.py/BuildProject.parse_num_jobs--crossover with--dataset/ETHPy150Open correl/Transmission-XBMC/resources/lib/basictypes/xmlgenerator.py/Store.classToElementName