Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sophus: long due update; add tests variant #17581

Merged
merged 3 commits into from
Feb 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions math/Sophus/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0
PortGroup github 1.0
PortGroup cmake 1.1

github.setup strasdat Sophus 1.0.0 v
github.setup strasdat Sophus 1.22.10
categories math
platforms any
license MIT
Expand All @@ -18,10 +18,26 @@ long_description This is a c++ implementation of Lie groups commonly used for
to present rotations in 2d and 3d as well as the special Euclidean group SE(2) \
and SE(3) to represent rigid body transformations (i.e. rotations and translations) in 2d and 3d.

depends_lib-append port:eigen3
set port_libfmt libfmt9
cmake.module_path-append \
${prefix}/lib/${port_libfmt}/cmake

depends_lib-append path:include/eigen3:eigen3 \
port:${port_libfmt}

checksums rmd160 6e1bda06cd4aac020843d05b97dd3d0db9032ced \
sha256 edab6a5c60ded38b4304103cd9d384d2d7591b9949bde3b95859f7bb1b5355a5
checksums rmd160 25ed84a989a16df4abf424dfdf7e4e0e32f28deb \
sha256 ca5d3f8955f7da6ec3c24b641d5a1a20f6f4cd9f031023e0eeaa4bb6bd9edf11 \
size 104186

compiler.cxx_standard 2014

configure.args-append \
-DBUILD_TESTS=OFF
-DBUILD_SOPHUS_EXAMPLES=OFF \
-DBUILD_SOPHUS_TESTS=OFF

variant tests description "Build and run tests" {
# Notice that there are a few failures on PPC: https://github.com/strasdat/Sophus/issues/448
configure.args-replace \
-DBUILD_SOPHUS_TESTS=OFF -DBUILD_SOPHUS_TESTS=ON
test.run yes
}