diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8e6e475d6a2e065120c9c0a151f311fe6960348..fd2aa941df314b38f7f6c6cfc9a5a200f4369330 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,10 @@
 cmake_minimum_required(VERSION 2.8.3)
+
+if (POLICY CMP0048)
+  cmake_policy(SET CMP0048 NEW)
+endif (POLICY CMP0048)
+
+
 project(axis_imu)
 
 ## Compile as C++11, supported in ROS Kinetic and newer