Skip to content

Commit 46a7cb2

Browse files
authored
Require cmake version 3.22.1 (#396)
Part of #350. Signed-off-by: Steve Peters <[email protected]>
1 parent e9a97b1 commit 46a7cb2

File tree

26 files changed

+30
-26
lines changed

26 files changed

+30
-26
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22

33
#============================================================================
44
# Initialize the project

Migration.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Deprecated code produces compile-time warnings. These warning serve as
55
notification to users that their code should be upgraded. The next major
66
release will remove the deprecated code.
77

8+
## Gazebo CMake 3.X to 4.X
9+
10+
1. The minimum required cmake version is now 3.22.1.
11+
812
## Gazebo CMake 2.X to 3.X
913

1014
1. **Breaking**: Examples are now built using native cmake.

MigrationFromClassic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ your project is migrated properly.
2525
### Clear out your top-level `CMakeLists.txt` entirely
2626
That's right, just throw it all out.
2727

28-
### Begin your top-level `CMakeLists.txt` with `cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)`
28+
### Begin your top-level `CMakeLists.txt` with `cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)`
2929

30-
We're migrating to 3.10 because it provides many valuable features that we are
30+
We're migrating to 3.22 because it provides many valuable features that we are
3131
now taking advantage of.
3232

3333
### Then call `find_package(gz-cmake4 REQUIRED)`

cmake/gz-all-config.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#
1313
################################################################################
1414

15-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
15+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
1616

1717
if(@PKG_NAME@_ALL_CONFIG_INCLUDED)
1818
return()

cmake/gz-component-config.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# taking on these version settings, and then that stack will POP after the
3030
# find_package(~) has exited, so this will not affect the cmake policy settings
3131
# of a caller.
32-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
32+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
3333

3434
if(@component_pkg_name@_CONFIG_INCLUDED)
3535
return()

cmake/gz-config.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# taking on these version settings, and then that stack will POP after the
3131
# find_package(~) has exited, so this will not affect the cmake policy settings
3232
# of a caller.
33-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
33+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
3434

3535
if(NOT @PKG_NAME@_FIND_QUIETLY)
3636
message(STATUS "Looking for @PKG_NAME@ -- found version @PROJECT_VERSION_FULL@")

config/gz-cmake-config.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# taking on these version settings, and then that stack will POP after the
1414
# find_package(~) has exited, so this will not affect the cmake policy settings
1515
# of a caller.
16-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
16+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
1717

1818
if(@PKG_NAME@_CONFIG_INCLUDED)
1919
return()

examples/comp_deps/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-component_deps VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project(

examples/core_child/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-core_child VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/core_child_private/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-core_child_private VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/core_nodep/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-core_no_deps VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project(

examples/core_nodep_static/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-core_no_deps_static VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project(

examples/core_static_child/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-core_static_child VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/find_ogre2/ogre-2.1/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-ogre-2.1 VERSION 0.1.0)
33

44
find_package(gz-cmake4 REQUIRED)

examples/find_ogre2/ogre-2.2/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-ogre-2.2 VERSION 0.1.0)
33

44
find_package(gz-cmake4 REQUIRED)

examples/find_ogre2/ogre-2.3/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-ogre-2.3 VERSION 0.1.0)
33

44
find_package(gz-cmake4 REQUIRED)

examples/find_ogre2/ogre-2/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-ogre-2 VERSION 0.1.0)
33

44
find_package(gz-cmake4 REQUIRED)

examples/find_ogre2/ogre/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-ogre VERSION 0.1.0)
33

44
find_package(gz-cmake4 REQUIRED)

examples/gz_conf/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-minimal0 VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/no_gz_prefix/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(no_gz_prefix VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project(

examples/prerelease/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-minimal1 VERSION 1.0.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project(VERSION_SUFFIX pre1)

examples/sanitizers/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-sanitizers VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/use_component_depsA/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-use_component_depsA VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/use_component_depsB/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-use_component_depsB VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/use_component_depsC/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-use_component_depsC VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
gz_configure_project()

examples/use_config_ifp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
22
project(gz-find_config VERSION 0.1.0)
33
find_package(gz-cmake4 REQUIRED)
44
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/")

0 commit comments

Comments
 (0)