Skip to content

Commit 5d23eae

Browse files
authored
Update C++ standard from 14 to 17 in xmake.lua
1 parent 3b93297 commit 5d23eae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/c/coal/xmake.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ package("coal")
5757
"#if _MSC_VER\n#define COAL_PRETTY_FUNCTION __FUNCSIG__", {plain = true})
5858
end
5959

60-
local configs = {"-DBUILD_TESTING=OFF", "-DBUILD_PYTHON_INTERFACE=OFF"}
60+
local configs = {"-DBUILD_TESTING=OFF", "-DBUILD_PYTHON_INTERFACE=OFF", "-DCMAKE_CXX_STANDARD=17"}
6161
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
6262
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
6363
table.insert(configs, "-DCOAL_ENABLE_LOGGING=" .. (package:config("logging") and "ON" or "OFF"))
@@ -96,5 +96,5 @@ package("coal")
9696
std::shared_ptr<coal::Ellipsoid> shape1 = std::make_shared<coal::Ellipsoid>(0.7, 1.0, 0.8);
9797
std::shared_ptr<coal::ConvexBase> shape2 = loadConvexMesh("../path/to/mesh/file.obj");
9898
}
99-
]]}, {configs = {languages = "c++14"}}))
99+
]]}, {configs = {languages = "c++17"}}))
100100
end)

0 commit comments

Comments
 (0)