Skip to content

Commit

Permalink
[gz-common5] Add include <chrono> for system_clock (#42635)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangWeiLin-MV authored Dec 19, 2024
1 parent 3f92cf1 commit d18ed2b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
12 changes: 12 additions & 0 deletions ports/gz-common5/003-include-chrono.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/events/include/gz/common/Event.hh b/events/include/gz/common/Event.hh
index a86c3ac07..936417d74 100644
--- a/events/include/gz/common/Event.hh
+++ b/events/include/gz/common/Event.hh
@@ -18,6 +18,7 @@
#define GZ_COMMON_EVENT_HH_

#include <atomic>
+#include <chrono>
#include <functional>
#include <list>
#include <map>
1 change: 1 addition & 0 deletions ports/gz-common5/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ignition_modular_library(
"-DPKG_CONFIG_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf${VCPKG_HOST_EXECUTABLE_SUFFIX}"
PATCHES
gz_remotery_vis.patch
003-include-chrono.patch
)

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/gz-common5-graphics/gz-common5-graphics-config.cmake" "find_package(GTS "
Expand Down
2 changes: 1 addition & 1 deletion ports/gz-common5/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gz-common5",
"version": "5.4.1",
"port-version": 2,
"port-version": 3,
"description": "Common libraries for robotics applications",
"homepage": "https://ignitionrobotics.org/libs/common",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3366,7 +3366,7 @@
},
"gz-common5": {
"baseline": "5.4.1",
"port-version": 2
"port-version": 3
},
"gz-fuel-tools8": {
"baseline": "8.1.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gz-common5.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "41a407bcf716c1a34f71478a24e9c481f15c255e",
"version": "5.4.1",
"port-version": 3
},
{
"git-tree": "379bf372ab20a993390aaf8c34be3292e43c2ec8",
"version": "5.4.1",
Expand Down

0 comments on commit d18ed2b

Please sign in to comment.