Skip to content

Commit

Permalink
Fix install directory
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Dec 11, 2023
1 parent a913ee3 commit 9c3ef8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ gz_configure_header(
src = "include/gz/physics/config.hh.in",
cmakelists = ["CMakeLists.txt"],
package = "physics",
defines = {
# These definitions are unused,
# this is merely to suppress generator warnings
"GZ_PHYSICS_ENGINE_INSTALL_DIR": "unused",
},
)

gz_export_header(
Expand Down Expand Up @@ -69,6 +74,9 @@ cc_library(
GZ_ROOT + "plugin:loader",
GZ_ROOT + "utils",
],
defines = [
'GZ_PHYSICS_ENGINE_RELATIVE_INSTALL_DIR=\\"unused\\"',
],
)

cc_library(
Expand Down
1 change: 1 addition & 0 deletions include/gz/physics/config.hh.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#define GZ_PHYSICS_VERSION "${PROJECT_VERSION}"
#define GZ_PHYSICS_VERSION_FULL "${PROJECT_VERSION_FULL}"
#define GZ_PHYSICS_VERSION_NAMESPACE v${PROJECT_VERSION_MAJOR}

#define GZ_PHYSICS_ENGINE_INSTALL_DIR _Pragma ("GCC warning \"'GZ_PHYSICS_ENGINE_INSTALL_DIR' macro is deprecated, use gz::physics::getEngineInstallDir() function instead. \"") "${GZ_PHYSICS_ENGINE_INSTALL_DIR}"

Expand Down

0 comments on commit 9c3ef8e

Please sign in to comment.