gazebosim / gz-cmake

A set of CMake modules that are used by the C++-based Gazebo projects.
https://gazebosim.org/libs/cmake
Apache License 2.0
27 stars 31 forks source link

ign -> gz FindXXX migration : gz-cmake #273

Closed methylDragon closed 2 years ago

methylDragon commented 2 years ago

See: https://github.com/gazebo-tooling/release-tools/issues/698

NOTE: THIS MUST BE REBASE MERGED!! Files were moved!

Description

All FindXXX.cmake files have been hard migrated to Gz.

Some downstream packages still use them via the gz_find_package() call, so an intercepting redirection of any Ign prefixed find calls to Gz has been implemented (with warning.)

image

Hard-tocks

Tick-tocks

Notes

The call itself is made of several components:

  gz_import_target(IgnOGRE2
    TARGET_NAME IgnOGRE2::IgnOGRE2
    LIB_VAR OGRE2_LIBRARIES
    INCLUDE_VAR OGRE2_INCLUDE_DIRS)

That is,

  gz_import_target(<package_name>
    TARGET_NAME <TARGET>::<TARGET>
    LIB_VAR OGRE2_LIBRARIES
    INCLUDE_VAR OGRE2_INCLUDE_DIRS)
scpeters commented 2 years ago

testing sdformat against this branch in macOS and windows CI using the ci_matching_branch/ trick in https://github.com/gazebosim/sdformat/pull/1072

methylDragon commented 2 years ago

Gonna squash all the non moving commits :eyes:

For posterity: image