diff --git a/CMakeLists.txt b/CMakeLists.txt
index c31d605bd28213d887e01e20bb954b5bdd8c0342..56b2dd86bff7d08531f930dce3406f04745c185c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,7 @@ endif()
 foreach(p
     CMP0025 # CMake 3.0
     CMP0042 # CMake 3.0
+    CMP0058
     )
   if(POLICY ${p})
     cmake_policy(SET ${p} NEW)