From 154d2bb59ebf38e7d0717b84da526c47362f451e Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Thu, 23 Jun 2022 17:09:13 -0700 Subject: [PATCH] ignition-math7: Rename CMake project to gz-math7 (#1933) Signed-off-by: Louise Poubel --- Formula/ignition-math7.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Formula/ignition-math7.rb b/Formula/ignition-math7.rb index 2896eb2db..394239243 100644 --- a/Formula/ignition-math7.rb +++ b/Formula/ignition-math7.rb @@ -1,6 +1,6 @@ class IgnitionMath7 < Formula desc "Math API for robotic applications" - homepage "https://ignitionrobotics.org" + homepage "https://gazebosim.org" url "https://github.com/gazebosim/gz-math.git", branch: "main" version "6.999.999~0~20220414" license "Apache-2.0" @@ -9,8 +9,8 @@ class IgnitionMath7 < Formula depends_on "doxygen" => :build depends_on "pybind11" => :build depends_on "eigen" - depends_on "ignition-cmake3" - depends_on "ignition-utils2" + depends_on "gz-cmake3" + depends_on "gz-utils2" depends_on "ruby" def install @@ -23,9 +23,9 @@ def install test do (testpath/"test.cpp").write <<-EOS - #include "ignition/math/SignalStats.hh" + #include "gz/math/SignalStats.hh" int main() { - ignition::math::SignalMean mean; + gz::math::SignalMean mean; mean.InsertData(1.0); mean.InsertData(-1.0); return static_cast(mean.Value()); @@ -33,16 +33,16 @@ def install EOS (testpath/"CMakeLists.txt").write <<-EOS cmake_minimum_required(VERSION 3.5 FATAL_ERROR) - find_package(ignition-math7 QUIET REQUIRED) + find_package(gz-math7 QUIET REQUIRED) add_executable(test_cmake test.cpp) - target_link_libraries(test_cmake ignition-math7::ignition-math7) + target_link_libraries(test_cmake gz-math7::gz-math7) EOS # test building with manual compiler flags system ENV.cc, "test.cpp", "--std=c++14", - "-I#{include}/ignition/math7", + "-I#{include}/gz/math7", "-L#{lib}", - "-lignition-math7", + "-lgz-math7", "-lc++", "-o", "test" system "./test"