def METHOD_NAME(self):
    if self._cmake:
        return self._cmake
    self._cmake = CMake(self)
    self._cmake.definitions["ACADO_BUILD_SHARED"] = self.options.shared
    self._cmake.definitions["ACADO_BUILD_STATIC"] = not self.options.shared
    self._cmake.definitions["ACADO_WITH_EXAMPLES"] = False
    self._cmake.definitions["ACADO_WITH_TESTING"] = False
    self._cmake.definitions["ACADO_DEVELOPER"] = False
    self._cmake.definitions["ACADO_INTERNAL"] = False
    self._cmake.definitions["ACADO_BUILD_CGT_ONLY"] = self.options.codegen_only
    # ACADO logs 170.000 lines of warnings, so we disable them
    self._cmake.definitions["CMAKE_C_FLAGS"] = "-w"
    self._cmake.definitions["CMAKE_CXX_FLAGS"] = "-w"
    self._cmake.configure()
    return self._cmake