Teach vtk-m CMake about new policies from CMake 3.X.X

This commit is contained in:
Robert Maynard 2015-10-21 10:16:32 -04:00
parent 876ef118cc
commit 05ea81d353

@ -19,6 +19,23 @@
##============================================================================
cmake_minimum_required(VERSION 2.8.10)
#setup policy rules for CMake 3.0 while we have a minimum required of 2.8.X
if(POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)#Clang and AppleClang are different compiler ids
endif()
#setup policy rules for CMake 3.1 while we have a minimum required of 2.8.X
if(POLICY CMP0054)
cmake_policy(SET CMP0053 NEW)#Enable faster parser engine
cmake_policy(SET CMP0054 NEW)#simplify if() argument expansion
endif()
#setup policy rules for CMake 3.3 while we have a minimum required of 2.8.X
if(POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)#Honor visibility properties for all targets
endif()
project (VTKm)
set(VTKm_MAJOR_VERSION 0)