Commit 66fb7cc6 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot
Browse files

Merge topic 'fix_cmake_glvnd_issue'

bde8d940

 fix cmake warning from CMP0072
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !4661
parents d7ab9d84 bde8d940
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