diff --git a/orocos_kdl/CMakeLists.txt b/orocos_kdl/CMakeLists.txt index c323e145a..7bb236658 100644 --- a/orocos_kdl/CMakeLists.txt +++ b/orocos_kdl/CMakeLists.txt @@ -2,6 +2,9 @@ # Test CMake version # CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +IF(POLICY CMP0048) + CMAKE_POLICY(SET CMP0048 NEW) +ENDIF() #MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY ) diff --git a/orocos_kinematics_dynamics/CMakeLists.txt b/orocos_kinematics_dynamics/CMakeLists.txt index 2b2e95004..6fea52f0d 100644 --- a/orocos_kinematics_dynamics/CMakeLists.txt +++ b/orocos_kinematics_dynamics/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required(VERSION 2.8.3) +if(POLICY CMP0048) + cmake_policy(SET CMP0048 NEW) +endif() project(orocos_kinematics_dynamics) find_package(catkin REQUIRED) catkin_metapackage() diff --git a/python_orocos_kdl/CMakeLists.txt b/python_orocos_kdl/CMakeLists.txt index 1cf8aec9c..68fe0be18 100644 --- a/python_orocos_kdl/CMakeLists.txt +++ b/python_orocos_kdl/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required(VERSION 2.4.6) +if(POLICY CMP0048) + cmake_policy(SET CMP0048 NEW) +endif() project(python_orocos_kdl)