Browse Source

Merge branch 'fix-cmd0054-warnings'

* fix-cmd0054-warnings:
  Set CMake policy CMP0054 to shut-up associated warning
Jean-Christophe Fillion-Robin 10 years ago
parent
commit
cdcd74621b
1 changed files with 8 additions and 0 deletions
  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
 #