Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Feb 4, 2025
1 parent 21fb5ab commit e7f7a7d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/t/thread-pool/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ package("thread-pool")
add_versions("v3.3.0", "b76c0103c7ed07c137bd5b1988b9c09da280bbbad37588a096d2954c8d996e0f")

on_install(function (package)
if package:version():ge("3.5.0") then
if package:version() and package:version():ge("3.5.0") then
os.vcp("include", package:installdir())
else
os.vcp("BS_thread_pool.hpp", package:installdir("include"))
end
end)

on_test(function (package)
assert(package:has_cxxtypes("BS::thread_pool", {configs = {languages = "c++17"}, includes = "BS_thread_pool.hpp"}))
assert(package:check_cxxsnippets({test = [[
void test() {
BS::thread_pool pool;
}
]]}, {configs = {languages = "c++17"}, includes = "BS_thread_pool.hpp"}))
end)

0 comments on commit e7f7a7d

Please sign in to comment.