update ctre to 3.9.0 (#4114)

* update ctre to 3.9.0

* Update xmake.lua
pull/4123/head
c8ef 6 months ago committed by GitHub
parent 6d66939329
commit 0615eab1c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 16
      packages/c/ctre/xmake.lua

@ -9,6 +9,7 @@ package("ctre")
add_versions("3.6", "f99f9c8bd3154d76305ef4fbde2c6622ed309c5a3401168732048fbc31e93f5d")
add_versions("3.7.2", "1dbcd96d279b5be27e9c90d2952533db10bc0e5d8ff6224a3c6d538fd94ab18f")
add_versions("3.8.1", "7c7a936145defe56e886bac7731ea16a52de65d73bda2b56702d0d0a61101c76")
add_versions("3.9.0", "8d0c061faf6b41c6913cac39af1d8cc8272e693b442c32f4fa762b505490fb36")
add_configs("header_only", {description = "Use header only version.", default = false, type = "boolean"})
@ -29,17 +30,16 @@ package("ctre")
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include<ctll.hpp>
#include<ctre.hpp>
#include<iostream>
#include<string>
#include <ctll.hpp>
#include <ctre.hpp>
#include <iostream>
#include <string>
static void test() {
std::string str = "Hello World";
static constexpr auto pattern = ctll::fixed_string{ R"(\s+)" };
for(auto e: ctre::split<pattern>(str)) {
static constexpr auto pattern = ctll::fixed_string{R"(\s+)"};
for (auto e : ctre::split<pattern>(str)) {
std::cout << std::string(e.get<0>()) << std::endl;
}
}
]]}, {configs = {languages = "c++20"}, includes = "ctre.hpp"}))
end)
end)

Loading…
Cancel
Save