Skip to content

Commit

Permalink
don't use VTK_USE_FILE for VTK >= 8.90
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrodrigues committed Sep 6, 2020
1 parent 5c76f99 commit 05ad3a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/OpenCVDetectVTK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 05ad3a5

Please sign in to comment.