[vtk-developers] FindPackage not working in new module system

Bill Lorensen bill.lorensen at gmail.com
Wed Jan 9 14:44:01 EST 2019


TYhis cmake file:
cmake_minimum_required(VERSION 2.8)

PROJECT(ReadOBJ)

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

add_executable(ReadOBJ MACOSX_BUNDLE ReadOBJ.cxx )

target_link_libraries(ReadOBJ ${VTK_LIBRARIES})

I specify the VTK_DIR to point at a new module VTK build. I'm using
cmake version 3.10.3

I get:

CMake Error at /usr/share/cmake-2.8/Modules/FindVTK.cmake:135 (message):
  VTK not found.  Set the VTK_DIR cmake cache entry to the directory
  containing VTKConfig.cmake.  This is either the root of the build tree, or
  PREFIX/lib/vtk for an installation.  For VTK 4.0, this is the location of
  UseVTK.cmake.  This is either the root of the build tree or
  PREFIX/include/vtk for an installation.
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)

-- 
Unpaid intern in BillsParadise at noware dot com


More information about the vtk-developers mailing list