From 70cf45471a7e2fa654749c9ec678960c3c85ea56 Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Thu, 23 Jun 2022 17:08:42 -0700 Subject: [PATCH] ignition-utils2: Rename CMake project to gz-utils2 (#1932) Signed-off-by: Louise Poubel --- Formula/ignition-utils2.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Formula/ignition-utils2.rb b/Formula/ignition-utils2.rb index 094567861..f4f4016bf 100644 --- a/Formula/ignition-utils2.rb +++ b/Formula/ignition-utils2.rb @@ -7,7 +7,7 @@ class IgnitionUtils2 < Formula depends_on "cmake" => [:build, :test] depends_on "pkg-config" => [:build, :test] - depends_on "ignition-cmake3" + depends_on "gz-cmake3" def install cmake_args = std_cmake_args @@ -23,14 +23,14 @@ def install test do (testpath/"test.cpp").write <<-EOS - #include + #include class SomeClassPrivate { }; class SomeClass { - private: ignition::utils::ImplPtr dataPtr = - ignition::utils::MakeImpl(); + private: gz::utils::ImplPtr dataPtr = + gz::utils::MakeImpl(); }; int main() { SomeClass object; @@ -39,13 +39,13 @@ class SomeClass EOS (testpath/"CMakeLists.txt").write <<-EOS cmake_minimum_required(VERSION 3.5 FATAL_ERROR) - find_package(ignition-utils2 QUIET REQUIRED) + find_package(gz-utils2 QUIET REQUIRED) add_executable(test_cmake test.cpp) - target_link_libraries(test_cmake ${IGNITION-UTILS_LIBRARIES}) + target_link_libraries(test_cmake gz-utils2::gz-utils2) EOS - system "pkg-config", "ignition-utils2" - cflags = `pkg-config --cflags ignition-utils2`.split - ldflags = `pkg-config --libs ignition-utils2`.split + system "pkg-config", "gz-utils2" + cflags = `pkg-config --cflags gz-utils2`.split + ldflags = `pkg-config --libs gz-utils2`.split system ENV.cxx, "test.cpp", *cflags, *ldflags,