<font color='black' size='2' face='arial'><font color="black" face="arial" size="2">There's a problem with VTK install trees and BUILD_TESTING OFF<font size="2">.</font> Using CMake 2.8.10.2, of course.<br>
<br>
If I build and install VTK with -DBUILD_<font size="2">TESTING:BOOL=OFF</font>, then delete the source and build trees, and then try <font size="2">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:<br>
<br>
<font size="2">4: Error: cmake execution failed<br>
4: CMake Error at C:/dev/VTK/Debug/lib/cmake/vtk-6.0/VTKConfig.cmake:47 (include):<br>
4: include could not find load file:<br>
4:<br>
4: C:/dev/src/VTK/CMake/vtkTestingMacros.cmake<br>
4: Call Stack (most recent call first):<br>
4: C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:73 (find_package)<br>
4: CMakeLists.txt:4 (find_package)<br>
<br>
<font size="2">The *install* tree (</font></font></font></font><font color="black" face="arial" size="2"><font size="2"><font size="2"><font size="2"><font color="black" face="arial" size="2"><font size="2"><font size="2">C:/dev/VTK/Debug)</font></font></font> is referencing the vtkTestingMacros.cmake file from the s<font size="2">rc tree (</font></font></font></font></font><font color="black" face="arial" size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font color="black" face="arial" size="2"><font size="2"><font size="2">C:/dev/src/VTK) -- the src tree</font></font></font> was de<font size="2">leted after I did the install...<font size="2">, assuming the install tree was supposed to be stand-alone</font></font></font></font> at that point.<br>
<br>
<font size="2">Is the error:<br>
<font size="2">(a) that the install tree is trying to load a file from the source tree<br>
<font size="2">(b) that vtkTestingMacros is referenced even though BUILD_TESTING is <font size="2">OFF?<br>
<font size="2">(c) <font size="2">both<br>
<br>
<br>
<font size="2">Thanks,<br>
<font size="2">David<br>
<br>
</font></font></font></font></font></font></font></font></font></font>
</font></font>