[vtkusers] CMake Error -- version doesn't match

joaoroberto88 joaorobertojr88 at gmail.com
Mon Dec 14 13:49:24 EST 2015


Hello VTK Users,

I'm getting the following error when running CMake to build a VTK example:

/CMake Error at CMakeLists.txt:8 (find_package):
  Could not find a configuration file for package "VTK" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    C:/dev/release/lib/cmake/vtk-6.3/VTKConfig.cmake, version: 6.3.0
(64bit)/

Below is my CMakeLists.txt:

/cmake_minimum_required(VERSION 2.8.8)
 
PROJECT(vtkMesh)
 
set(CMAKE_PREFIX_PATH C:/dev/release)

find_package(VTK REQUIRED)

include(${VTK_USE_FILE})
 
add_executable(vtkMesh WIN32 main.cpp)
 
if(VTK_LIBRARIES)
  target_link_libraries(vtkMesh ${VTK_LIBRARIES})
else()
  target_link_libraries(vtkMesh vtkHybrid vtkWidgets)
endif()/

Could anyone help me?

Thanks.



--
View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list