mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Teach vtk-m CMake about new policies from CMake 3.X.X
This commit is contained in:
parent
876ef118cc
commit
05ea81d353
@ -19,6 +19,23 @@
|
|||||||
##============================================================================
|
##============================================================================
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8.10)
|
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)
|
project (VTKm)
|
||||||
|
|
||||||
set(VTKm_MAJOR_VERSION 0)
|
set(VTKm_MAJOR_VERSION 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user