diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d34337f7c4b84fa5d50a652bcf7d9492faefb17..b3e61d4f6c181492860857613e081e5b2270cbd2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,9 @@ cmake_minimum_required(VERSION 3.1)
 # Set CMake policies
 cmake_policy(SET CMP0011 NEW)
 cmake_policy(SET CMP0054 NEW)
+if(${CMAKE_VERSION} VERSION_GREATER 3.9.6)
+    cmake_policy(SET CMP0071 NEW)
+endif()
 
 if(WIN32 AND
     NOT ${CMAKE_GENERATOR} STREQUAL Ninja AND