minor insignificant corrections
This commit is contained in:
parent
546c084fe6
commit
a54ef70c04
@ -1,5 +1,4 @@
|
||||
if(NOT WITH_VTK OR ANDROID OR IOS)
|
||||
message(STATUS "VTK support is disabled.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
@ -14,14 +13,9 @@ if(NOT DEFINED VTK_FOUND OR NOT VTK_FOUND)
|
||||
endif()
|
||||
|
||||
if(VTK_FOUND)
|
||||
if (BUILD_SHARED_LIBS OR (NOT BUILD_SHARED_LIBS AND NOT VTK_BUILD_SHARED_LIBS))
|
||||
set(HAVE_VTK ON)
|
||||
message(STATUS "Found VTK ver. ${VTK_VERSION} (usefile: ${VTK_USE_FILE})")
|
||||
else ()
|
||||
set(HAVE_VTK OFF)
|
||||
message(WARNING "VTK disabled. You are to build OpenCV in STATIC but VTK is SHARED!")
|
||||
endif ()
|
||||
set(HAVE_VTK ON)
|
||||
message(STATUS "Found VTK ver. ${VTK_VERSION} (usefile: ${VTK_USE_FILE})")
|
||||
else()
|
||||
set(HAVE_VTK OFF)
|
||||
message(STATUS "VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or set $VTK_DIR enviroment variable to VTK install subdirectory with UseVTK.cmake file (for windows)")
|
||||
message(STATUS "VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or set $VTK_DIR enviroment variable to VTK install subdirectory with VTKConfig.cmake file (for windows)")
|
||||
endif()
|
Loading…
x
Reference in New Issue
Block a user