Skip to content

Commit

Permalink
ignition-utils2: Rename CMake project to gz-utils2 (#1932)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Jun 24, 2022
1 parent 2f00220 commit 70cf454
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Formula/ignition-utils2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,14 +23,14 @@ def install

test do
(testpath/"test.cpp").write <<-EOS
#include <ignition/utils/ImplPtr.hh>
#include <gz/utils/ImplPtr.hh>
class SomeClassPrivate
{
};
class SomeClass
{
private: ignition::utils::ImplPtr<SomeClassPrivate> dataPtr =
ignition::utils::MakeImpl<SomeClassPrivate>();
private: gz::utils::ImplPtr<SomeClassPrivate> dataPtr =
gz::utils::MakeImpl<SomeClassPrivate>();
};
int main() {
SomeClass object;
Expand All @@ -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,
Expand Down

0 comments on commit 70cf454

Please sign in to comment.