def METHOD_NAME(self):
    tc = CMakeToolchain(self)
    tc.cache_variables["ENABLE_ZLIB_COMPRESSION"] = self.options.with_zlib
    tc.cache_variables["ENABLE_CRYPT_NONE"] = self.options.enable_crypt_none
    tc.cache_variables["ENABLE_MAC_NONE"] = self.options.enable_mac_none
    tc.cache_variables["ENABLE_DEBUG_LOGGING"] = self.options.enable_debug_logging
    if self.options.crypto_backend == "openssl":
        tc.cache_variables["CRYPTO_BACKEND"] = "OpenSSL"
        tc.cache_variables["OPENSSL_ROOT_DIR"] = self.dependencies["openssl"].package_folder.replace("\\", "/")
    elif self.options.crypto_backend == "mbedtls":
        tc.cache_variables["CRYPTO_BACKEND"] = "mbedTLS"
    tc.cache_variables["BUILD_EXAMPLES"] = False
    tc.cache_variables['BUILD_TESTING'] = not self.conf.get("tools.build:skip_test", default=True, check_type=bool)
    tc.cache_variables["BUILD_STATIC_LIBS"] = not self.options.shared
    tc.cache_variables["BUILD_SHARED_LIBS"] = self.options.shared
    # To install relocatable shared lib on Macos by default
    tc.variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW"
    # Workaround until github.com/conan-io/conan/pull/12600 is merged
    if is_msvc(self):
        tc.cache_variables["CMAKE_TRY_COMPILE_CONFIGURATION"] = str(self.settings.build_type)
    tc.METHOD_NAME()
    deps = CMakeDeps(self)
    deps.METHOD_NAME()