def METHOD_NAME(self):
    cmake = CMake(self)
    cmake.definitions["PAGMO_BUILD_TESTS"] = False
    cmake.definitions["PAGMO_BUILD_BENCHMARKS"] = False
    cmake.definitions["PAGMO_BUILD_TUTORIALS"] = False
    cmake.definitions["PAGMO_WITH_EIGEN3"] = self.options.with_eigen
    cmake.definitions["PAGMO_WITH_NLOPT"] = self.options.with_nlopt
    cmake.definitions["PAGMO_WITH_IPOPT"] = self.options.with_ipopt
    cmake.definitions["PAGMO_ENABLE_IPO"] = False
    cmake.definitions["PAGMO_BUILD_STATIC_LIBRARY"] = not self.options.shared
    cmake.configure()
    return cmake