Explorar el Código

Merge branch 'fix-cmd0054-warnings'

* fix-cmd0054-warnings:
  Set CMake policy CMP0054 to shut-up associated warning
Jean-Christophe Fillion-Robin hace 10 años
padre
commit
cdcd74621b
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      CMakeLists.txt

+ 8 - 0
CMakeLists.txt

@@ -20,6 +20,14 @@
 
 cmake_minimum_required(VERSION 2.8.9)
 
+foreach(p
+  CMP0054 # CMake 3.1
+  )
+  if(POLICY ${p})
+    cmake_policy(SET ${p} NEW)
+  endif()
+endforeach()
+
 #-----------------------------------------------------------------------------
 # Superbuild
 #