Commit bde8d940 authored by Ken Martin's avatar Ken Martin
Browse files

fix cmake warning from CMP0072

Newer versions of cmake warn on this
parent daba574d
include(CMakeDependentOption)
if(POLICY CMP0072)
cmake_policy(PUSH)
cmake_policy(SET CMP0072 NEW) # prefer GLVND
endif()
# Logic to figure out what system libraries will be used by rendering, and
# whether VTK can use OSMesa for rendering.
set(default_use_x OFF)
......@@ -179,3 +184,7 @@ function(vtk_opengl_link target)
set_property(TARGET ${target} APPEND_STRING PROPERTY LINK_FLAGS "/DELAYLOAD:opengl32.dll")
endif()
endfunction()
if(POLICY CMP0072)
cmake_policy(POP)
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment