package("abseil") set_homepage("https://abseil.io") set_description("C++ Common Libraries") add_urls("https://github.com/abseil/abseil-cpp/archive/$(version).tar.gz", "https://github.com/abseil/abseil-cpp.git") add_versions("20200225.1", "0db0d26f43ba6806a8a3338da3e646bb581f0ca5359b3a201d8fb8e4752fd5f8") add_deps("cmake") on_install("macosx", "linux", "windows", function (package) import("package.tools.cmake").install(package) end) on_test(function (package) assert(package:check_cxxsnippets({test = [[ #include #include #include #include "absl/strings/str_join.h" void test () { std::vector v = {"foo","bar","baz"}; std::string s = absl::StrJoin(v, "-"); std::cout << "Joined string: " << s << "\\n"; } ]]}, {configs = {languages = "c++11"}})) end)