def METHOD_NAME(self):
    if scm.Version(self.version) < "2.1.0":
        if self.options.get_safe("standalone_asio"):
            self.cpp_info.defines.append("PACKIO_STANDALONE_ASIO")
    else:
        # Starting from 2.1.0, preprocessor defines can be defined to 0 to force-disable
        self.cpp_info.defines.append(f"PACKIO_STANDALONE_ASIO={1 if self.options.get_safe('standalone_asio') else 0}")
        self.cpp_info.defines.append(f"PACKIO_HAS_MSGPACK={1 if self.options.get_safe('msgpack') else 0}")
        self.cpp_info.defines.append(f"PACKIO_HAS_NLOHMANN_JSON={1 if self.options.get_safe('nlohmann_json') else 0}")
        self.cpp_info.defines.append(f"PACKIO_HAS_BOOST_JSON={1 if self.options.get_safe('boost_json') else 0}")