Skip to content

Commit

Permalink
cxxwrap: support version 0.14, keep support for 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Sep 6, 2023
1 parent 0022db7 commit 6efad08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Polymake"
uuid = "d720cf60-89b5-51f5-aff5-213f193123e7"
repo = "https://github.com/oscar-system/Polymake.jl.git"
version = "0.11.4"
version = "0.11.5"

[deps]
BinaryWrappers = "f01c122e-0ea1-4f85-ad8f-907073ad7a9f"
Expand All @@ -24,7 +24,7 @@ polymake_oscarnumber_jll = "10f31823-b687-53e6-9f29-edb9d4da9f9f"

[compat]
BinaryWrappers = "~0.1.0"
CxxWrap = "~0.10.1, ~0.11, ~0.12, ~0.13.1"
CxxWrap = "~0.10.1, ~0.11, ~0.12, ~0.13.1, ~0.14"
JSON = "^0.20, ^0.21"
Mongoc = "~0.6.0, ~0.7.0, ~0.8.0, ~0.9.0"
Ninja_jll = "^1.11.1"
Expand Down
14 changes: 12 additions & 2 deletions src/Polymake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,13 @@ module LibPolymake
using polymake_jll
using libpolymake_julia_jll
using polymake_oscarnumber_jll
import ..Polymake: libcxxwrap_build_version

@wrapmodule(joinpath(libpolymake_julia), :define_module_polymake)
if libcxxwrap_build_version() >= v"0.11.0"
@wrapmodule(() -> joinpath(libpolymake_julia), :define_module_polymake)

Check warning on line 102 in src/Polymake.jl

View check run for this annotation

Codecov / codecov/patch

src/Polymake.jl#L102

Added line #L102 was not covered by tests
else
@wrapmodule(joinpath(libpolymake_julia), :define_module_polymake)
end

function __init__()

Expand Down Expand Up @@ -135,8 +140,13 @@ module LibOscarNumber
using polymake_oscarnumber_jll

import ..LibPolymake: show_small_obj
import ..Polymake: libcxxwrap_build_version

@wrapmodule(joinpath(libpolymake_oscarnumber), :define_module_polymake_oscarnumber)
if libcxxwrap_build_version() >= v"0.11.0"
@wrapmodule(() -> joinpath(libpolymake_oscarnumber), :define_module_polymake_oscarnumber)

Check warning on line 146 in src/Polymake.jl

View check run for this annotation

Codecov / codecov/patch

src/Polymake.jl#L146

Added line #L146 was not covered by tests
else
@wrapmodule(joinpath(libpolymake_oscarnumber), :define_module_polymake_oscarnumber)
end

function __init__()

Expand Down

0 comments on commit 6efad08

Please sign in to comment.