[vtk-developers] VTK install tree and BUILD_TESTING OFF problem

David Cole dlrdave at aol.com
Sat Feb 2 12:37:07 EST 2013


 Yes! Topic number 2^11 !!

Please review:

  http://review.source.kitware.com/#/t/2048/


 This eliminates the reference to vtkTestingMacros from the install tree.

If instead, vtkTestingMacros should be installed, then please reject my above topic, and I'll submit another one that installs the file instead.


Thanks,
David


 

-----Original Message-----
From: David Cole <dlrdave at aol.com>
To: vtk-developers <vtk-developers at vtk.org>
Sent: Fri, Feb 1, 2013 5:22 pm
Subject: VTK install tree and BUILD_TESTING OFF problem


There's a problem with VTK install trees and BUILD_TESTING OFF. Using CMake 2.8.10.2, of course.

If I build and install VTK with -DBUILD_TESTING:BOOL=OFF, then delete the source and build trees, and then try to build a simple client test program against the *install* tree, I get this when CMake tries to do the find_package(VTK) in my client test program:

4: Error: cmake execution failed
4: CMake Error at C:/dev/VTK/Debug/lib/cmake/vtk-6.0/VTKConfig.cmake:47 (include):
4:   include could not find load file:
4:
4:     C:/dev/src/VTK/CMake/vtkTestingMacros.cmake
4: Call Stack (most recent call first):
4:   C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:73 (find_package)
4:   CMakeLists.txt:4 (find_package)

The *install* tree (C:/dev/VTK/Debug) is referencing the vtkTestingMacros.cmake file from the src tree (C:/dev/src/VTK) -- the src tree was deleted after I did the install..., assuming the install tree was supposed to be stand-alone at that point.

Is the error:
(a) that the install tree is trying to load a file from the source tree
(b) that vtkTestingMacros is referenced even though BUILD_TESTING is OFF?
(c) both


Thanks,
David


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130202/b0e76f5b/attachment.html>


More information about the vtk-developers mailing list