Skip to content

Commit 83b362c

Browse files
committed
get rid of cmake build-time warnings
- cmake drops support for <2.8.12 in the future - CMP0048 is only available from 3.0, but complains if it is unset so explicitly set the policy if we compile on newer cmake (very likely).
1 parent cc6a9c6 commit 83b362c

8 files changed

Lines changed: 33 additions & 16 deletions

File tree

imu_monitor/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
2-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
35
project(imu_monitor)
46

57
find_package(catkin REQUIRED)

pr2_bringup/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
2-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
35
project(pr2_bringup)
46

57
# Load catkin and all dependencies required for this package

pr2_camera_synchronizer/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
2-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
35
project(pr2_camera_synchronizer)
46

57
# Load catkin and all dependencies required for this package

pr2_computer_monitor/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
2-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
35
project(pr2_computer_monitor)
6+
47
# Load catkin and all dependencies required for this package
5-
# TODO: remove all from COMPONENTS that are not catkin packages.
68
find_package(catkin REQUIRED COMPONENTS roscpp std_msgs)
79

810
if(CATKIN_ENABLE_TESTING)

pr2_controller_configuration/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
2-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
35
project(pr2_controller_configuration)
46

57
# Load catkin and all dependencies required for this package

pr2_ethercat/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
2-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
35
project(pr2_ethercat)
46

57
# Load catkin and all dependencies required for this package

pr2_robot/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
25
project(pr2_robot)
36
find_package(catkin REQUIRED)
47
catkin_metapackage()

pr2_run_stop_auto_restart/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
2-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 2.8.12)
2+
if(POLICY CMP0048)
3+
cmake_policy(SET CMP0048 NEW)
4+
endif()
35
project(pr2_run_stop_auto_restart)
46

57
# Load catkin and all dependencies required for this package

0 commit comments

Comments
 (0)