<div dir="ltr">Hi All:<div><br></div><div>I have a CMakeLists.txt file with this in it:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>find_package(VTK REQUIRED)</div></div><div><div>include(${VTK_USE_FILE})</div></div><div><div><br></div></div><div><div>message(STATUS "VTK: ${VTK_LIBRARIES}")</div></div><div> ...</div></blockquote><div><br></div><div>And a subdirectory CMakeLists.txt file with this:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>add_executable(vtkObjViewer vtkObjViewer.cxx)</div></div><div><div>target_link_libraries(vtkObjViewer PUBLIC MinVR::MinVR</div></div><div><div> ${VTK_LIBRARIES}</div></div></blockquote><div><br></div><div><br></div><div>That produces this output:</div><div><br></div><div>
<span></span>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">-- VTK: vtksys;vtkCommonCore;vtkCommonMath;vtkCommonMisc;...</span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">...</span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">
<span></span>
</span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,164,0);background-color:rgb(223,219,195)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(77,47,45)">[ 50%] </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><b>Linking CXX executable ../bin/vtkObjViewer</b></span></p>
<p class="gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">ld: library not found for -lvtksys</span></p>
<p class="gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">clang: </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(177,37,19)"><b>error: </b></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">linker command failed with exit code 1 (use -v to see invocation)</span></p>
<p class="gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">make[2]: *** [bin/vtkObjViewer] Error 1</span></p>
<p class="gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">make[1]: *** [examples/CMakeFiles/vtkObjViewer.dir/all] Error 2</span></p>
<p class="gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">make: *** [all] Error 2</span></p>
<br><p></p>
<br></div><div>The vtksys library is obviously wtihin the libraries list, right there at the front, and I've confirmed that libvtksys exists and is in the directory where I've pointed cmake. Can anyone help me understand what I'm doing wrong? Or at least what else I should check?</div><div><br></div><div>Thank you,</div><div><br></div><div> -Tom</div></div>