package("unordered_dense") set_kind("library", {headeronly = true}) set_homepage("https://github.com/martinus/unordered_dense") set_description("A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion.") set_license("MIT") add_urls("https://github.com/martinus/unordered_dense/archive/refs/tags/$(version).tar.gz", "https://github.com/martinus/unordered_dense.git") add_versions("v1.1.0", "b47d8590afdc32b306272a6bcb15d5464462f3cd3d44653648924a1e10d1e78c") add_versions("v1.4.0", "36b6bfe2fe2633f9d9c537b9b808b4be6b77ff51c66d370d855f477517bc3bc9") add_versions("v2.0.2", "d4be48c164fa2f49deb55354b33c335688da3bd4b2299b3a46b8092602f67556") add_versions("v3.0.0", "e73452d7c1e274b4a15b553c0904f1de4bcfa61b00514acd1eaad7deac805ef0") add_deps("cmake") on_install(function (package) import("package.tools.cmake").install(package) os.cp("include", package:installdir()) end) on_test(function (package) assert(package:check_cxxsnippets({test = [[ void test() { ankerl::unordered_dense::map map; map[123] = 333; } ]]}, {configs = {languages = "c++17"}, includes = "ankerl/unordered_dense.h"})) end)