update `on_test` languages version (#1494)

pull/1495/head
Frank Zhuang 2 years ago committed by GitHub
parent 384bc60cfc
commit d91b9d7421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/f/fmt/xmake.lua
  2. 2
      packages/s/spdlog/xmake.lua
  3. 2
      packages/v/vulkan-hpp/xmake.lua

@ -57,6 +57,6 @@ package("fmt")
std::string s = fmt::format("{}", "hello");
assert(s == "hello");
}
]]}, {configs = {languages = "c++11"}, includes = "fmt/format.h"}))
]]}, {configs = {languages = "c++14"}, includes = "fmt/format.h"}))
end)

@ -54,5 +54,5 @@ package("spdlog")
end)
on_test(function (package)
assert(package:has_cxxfuncs("spdlog::info(\"\")", {includes = "spdlog/spdlog.h", configs = {languages = "c++11"}}))
assert(package:has_cxxfuncs("spdlog::info(\"\")", {includes = "spdlog/spdlog.h", configs = {languages = "c++14"}}))
end)

@ -48,5 +48,5 @@ package("vulkan-hpp")
ai.engineVersion = VK_MAKE_API_VERSION(1,0,0,0);
ai.apiVersion = VK_API_VERSION_1_0;
}
]]}, {includes = "vulkan/vulkan.hpp", configs = {languages = "c++11"} }))
]]}, {includes = "vulkan/vulkan.hpp", configs = {languages = "c++14"} }))
end)

Loading…
Cancel
Save