[vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH
David Gobbi
david.gobbi at gmail.com
Fri Feb 26 22:20:45 EST 2016
CMake needs VTK_DIR to be set (either as an environment variable, or in the
CMakeCache.txt file). This will allow CMake to find VTKConfig.cmake.
There is no FindVTK.cmake file.
VTK_DIR=C:/MyVTKProject/VTK-7.0.0/VTK-bin
Packages that have a XYZConfig.cmake file do not have a FindXYZ.cmake
file. The CMake error message doesn't explain this very well,
unfortunately.
- David
On Fri, Feb 26, 2016 at 7:35 PM, Nie, Andrew (MU-Student) <
znhc5 at mail.missouri.edu> wrote:
> Hi there,
>
>
> I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no
> FindVTK.cmake
> in C:\MyVTKProjects\VTK-7.0.0\VTK-bin\lib\cmake\vtk-7.0\Modules. All of
> examples of VTK cannot work because no FindVTK.cmake.
>
>
> CMake Error at CMakeLists.txt:6 (find_package):
> By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
> asked CMake to find a package configuration file provided by "VTK", but
> CMake did not find one.
> Could not find a package configuration file provided by "VTK" with any of
> the following names:
> VTKConfig.cmake
> vtk-config.cmake
> Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set
> "VTK_DIR"
> to a directory containing one of the above files. If "VTK" provides a
> separate development package or SDK, be sure it has been installed.
>
> How can I deal with this problem? Really appreciated.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160226/e6c60f8e/attachment.html>
More information about the vtkusers
mailing list