auto auto_select_compiler()

in include/poac/util/stroite/utils/configure.hpp [27:45]


    auto auto_select_compiler() {
        using poac::core::exception::error;
        namespace command = poac::util::_command;

        if (const char* cxx = std::getenv("CXX")) {
            return cxx;
        }
        else if (command::has_command("g++")) {
            return "g++";
        }
        else if (command::has_command("clang++")) {
            return "clang++";
        }
        else {
            throw error(
                    "Environment variable \"CXX\" was not found.\n"
                    "Select the compiler and export it.");
        }
    }