From 05ad3a535facd56cb759666587179aa1250aa0a8 Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Sun, 6 Sep 2020 15:47:43 -0400 Subject: [PATCH] don't use VTK_USE_FILE for VTK >= 8.90 --- cmake/OpenCVDetectVTK.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/OpenCVDetectVTK.cmake b/cmake/OpenCVDetectVTK.cmake index 4c835040c5..b8cf36007c 100644 --- a/cmake/OpenCVDetectVTK.cmake +++ b/cmake/OpenCVDetectVTK.cmake @@ -84,4 +84,8 @@ if(NOT ${VTK_COMPILE_STATUS}) endif() set(HAVE_VTK ON) -message(STATUS "Found VTK ${VTK_VERSION} (${VTK_USE_FILE})") +if (VTK_VERSION VERSION_LESS "8.90.0") + message(STATUS "Found VTK ${VTK_VERSION} (${VTK_USE_FILE})") +else() + message(STATUS "Found VTK ${VTK_VERSION}") +endif()