The entire build process succeed. But clickhouse-server binary startup with segmentfault.
It seems that OwnSplitChannel.h is ambiguous in same binary because of different `WITH_TEXT_LOG` compile flag.

**Operating system**
macOS 12.5.1

**Cmake version**
cmake version 3.22.2

**Ninja version**
1.10.2

**Compiler name and version**
llvm13

**Full cmake and/or ninja output**

{
public:
    
    void log(const Poco::Message & msg) override;
    void setChannelProperty(const std::string& channel_name, const std::string& name, const std::string& value);
    
    void addChannel(Poco::AutoPtr<Poco::Channel> channel, const std::string & name);
#ifdef WITH_TEXT_LOG
    void addTextLog(std::shared_ptr<DB::TextLog> log, int max_priority);
#endif
    void setLevel(const std::string & name, int level);
private:
    void logSplit(const Poco::Message & msg);
    void tryLogSplit(const Poco::Message & msg);
    using ChannelPtr = Poco::AutoPtr<Poco::Channel>;
    
    using ExtendedChannelPtrPair = std::pair<ChannelPtr, ExtendedLogChannel *>;
    std::map<std::string, ExtendedChannelPtrPair> channels;
    std::mutex text_log_mutex;
#ifdef WITH_TEXT_LOG
    std::weak_ptr<DB::TextLog> text_log;
    std::atomic<int> text_log_max_priority = -1;
#endif
};
}