sophus: drop GCC dependency

Closes #110137.

Signed-off-by: Michka Popoff <3406519+iMichka@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
danielnachun 2022-09-09 10:17:24 -07:00 committed by BrewTestBot
parent 7f3b7c395c
commit 6706c98e42
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 3 additions and 6 deletions

View File

@ -4,6 +4,7 @@ class Sophus < Formula
url "https://github.com/strasdat/Sophus/archive/refs/tags/v22.04.1.tar.gz"
sha256 "635dc536e7768c91e89d537608226b344eef901b51fbc51c9f220c95feaa0b54"
license "MIT"
revision 1
head "https://github.com/strasdat/Sophus.git", branch: "master"
bottle do
@ -13,17 +14,13 @@ class Sophus < Formula
depends_on "cmake" => [:build, :test]
depends_on "ceres-solver"
depends_on "eigen"
depends_on "fmt"
on_linux do
depends_on "gcc"
end
fails_with gcc: "5" # C++17 (ceres-solver dependency)
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args,
"-DBUILD_SOPHUS_EXAMPLES=OFF"
"-DBUILD_SOPHUS_EXAMPLES=OFF",
"-DSOPHUS_USE_BASIC_LOGGING=ON"
system "cmake", "--build", "build"
system "cmake", "--install", "build"
(pkgshare/"examples").install "examples/HelloSO3.cpp"