Skip to content

Commit 11478a9

Browse files
authored
Find jetty packages with explicit version (#3256)
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent 0006877 commit 11478a9

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

CMakeLists.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set (GZ_DISTRIBUTION "Jetty")
1010
# Find gz-cmake
1111
#============================================================================
1212
# If you get an error at this line, you need to install gz-cmake
13-
find_package(gz-cmake REQUIRED)
13+
find_package(gz-cmake 5 REQUIRED)
1414

1515
#============================================================================
1616
# Configure the project
@@ -84,24 +84,24 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
8484
# as protobuf could be find transitively by any dependency
8585
set(protobuf_MODULE_COMPATIBLE TRUE)
8686

87-
gz_find_package(sdformat REQUIRED)
87+
gz_find_package(sdformat VERSION 16 REQUIRED)
8888

8989
#--------------------------------------
9090
# Find gz-plugin
91-
gz_find_package(gz-plugin REQUIRED COMPONENTS loader register)
91+
gz_find_package(gz-plugin VERSION 4 REQUIRED COMPONENTS loader register)
9292

9393
#--------------------------------------
9494
# Find gz-transport
95-
gz_find_package(gz-transport REQUIRED COMPONENTS log parameters)
95+
gz_find_package(gz-transport VERSION 15 REQUIRED COMPONENTS log parameters)
9696

9797
#--------------------------------------
9898
# Find gz-msgs
99-
gz_find_package(gz-msgs REQUIRED)
99+
gz_find_package(gz-msgs VERSION 12 REQUIRED)
100100

101101
#--------------------------------------
102102
# Find gz-common
103103
# Always use the profiler component to get the headers, regardless of status.
104-
gz_find_package(gz-common
104+
gz_find_package(gz-common VERSION 7
105105
COMPONENTS
106106
av
107107
events
@@ -116,13 +116,13 @@ list(APPEND EXTRA_TEST_LIB_DEPS gz-common::testing)
116116

117117
#--------------------------------------
118118
# Find gz-fuel_tools
119-
gz_find_package(gz-fuel_tools REQUIRED)
119+
gz_find_package(gz-fuel_tools VERSION 11 REQUIRED)
120120

121121
# Option to build gz-sim with GUI support
122122
option(ENABLE_GUI "Build gz-sim with GUI enabled" ON)
123123

124124
if(ENABLE_GUI)
125-
gz_find_package(gz-gui REQUIRED)
125+
gz_find_package(gz-gui VERSION 10 REQUIRED)
126126

127127
set(QT_MAJOR_VERSION 6)
128128
set(QT_MINOR_VERSION 4)
@@ -145,7 +145,7 @@ endif()
145145

146146
#--------------------------------------
147147
# Find gz-physics
148-
gz_find_package(gz-physics
148+
gz_find_package(gz-physics VERSION 9
149149
COMPONENTS
150150
heightmap
151151
mesh
@@ -155,7 +155,7 @@ gz_find_package(gz-physics
155155

156156
#--------------------------------------
157157
# Find gz-sensors
158-
gz_find_package(gz-sensors REQUIRED
158+
gz_find_package(gz-sensors VERSION 10 REQUIRED
159159
# component order is important
160160
COMPONENTS
161161
# non-rendering
@@ -186,11 +186,11 @@ gz_find_package(gz-sensors REQUIRED
186186

187187
#--------------------------------------
188188
# Find gz-rendering
189-
gz_find_package(gz-rendering REQUIRED)
189+
gz_find_package(gz-rendering VERSION 10 REQUIRED)
190190

191191
#--------------------------------------
192192
# Find gz-math
193-
gz_find_package(gz-math REQUIRED COMPONENTS eigen3)
193+
gz_find_package(gz-math VERSION 9 REQUIRED COMPONENTS eigen3)
194194

195195
#--------------------------------------
196196
# Find if gz command is available
@@ -206,7 +206,7 @@ set(GZ_TOOLS_VER 2)
206206

207207
#--------------------------------------
208208
# Find gz-utils
209-
gz_find_package(gz-utils REQUIRED COMPONENTS cli)
209+
gz_find_package(gz-utils VERSION 4 REQUIRED COMPONENTS cli)
210210

211211

212212
#--------------------------------------

0 commit comments

Comments
 (0)