From b13c0fe6563db91f460cb9f9e6bf36989d18fff7 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Fri, 10 May 2019 11:58:26 +0100
Subject: [PATCH] Attempt to correct cmake policy warning for PCL

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6bfe35869..6d370e92b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,10 @@ if (WITH_FIXSTARS)
 	find_package( LibSGM )
 endif()
 
+if(${CMAKE_VERSION} VERSION_GREATER "3.12.0") 
+	cmake_policy(SET CMP0074 NEW)
+endif()
+
 if (WITH_PCL)
 	find_package( PCL QUIET COMPONENTS io common visualization registration )
 endif()
-- 
GitLab