<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I have compiled ITK with the use_vtk option. And now ITK overrides the VTK_LIBRARIES, with a really small list of libraries.<br><br>find_package(ITK 4.5 REQUIRED)                                           <br>message (status "** ITK FOUND: USE_FILES ${ITK_USE_FILE}")               <br>message (status "** VTK FOUND: USE_FILES ${VTK_USE_FILE}")               <br>message (status "** VTK FOUND: VTK_LIBRARIES ${VTK_LIBRARIES}") <br><br>find_package(VTK 6.2 REQUIRED)<br>message (status "** VTK FOUND: USE_FILES ${VTK_USE_FILE}")<br>message (status "** VTK FOUND: VTK_LIBRARIES ${VTK_LIBRARIES}")<br><br>Output:<br>status** ITK FOUND: USE_FILES /home/phc/Software/ITK/install-debug-nocuda-v461/lib/cmake/ITK-4.7/UseITK.cmake<br>status** VTK FOUND: USE_FILES /home/phc/Software/VTK/installation/qt5-git/lib/cmake/vtk-6.2/UseVTK.cmake<br>status** VTK FOUND: VTK_LIBRARIES vtkCommonCore;vtksys;vtkRenderingCore;vtkCommonExecutionModel;<br>vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;<br>vtkCommonTransforms;vtkFiltersExtraction;vtkFiltersCore;vtkFiltersGeneral;vtkCommonComputationalGeometry;<br>vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingOpenGL;<br>vtkImagingHybrid;vtkIOImage;vtkDICOMParser;vtkIOCore;vtkzlib;vtkmetaio;vtkjpeg;vtkpng;vtktiff;vtkRenderingFreeType;<br>vtkfreetype;vtkftgl;vtkInteractionStyle;vtkImagingSources<br><br>status** VTK FOUND: USE_FILES /home/phc/Software/VTK/installation/qt5-git/lib/cmake/vtk-6.2/UseVTK.cmake<br>status** VTK FOUND: VTK_LIBRARIES vtkCommonCore;vtksys;vtkRenderingCore;vtkCommonExecutionModel;<br>vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;<br>vtkCommonTransforms;vtkFiltersExtraction;vtkFiltersCore;vtkFiltersGeneral;vtkCommonComputationalGeometry;<br>vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingOpenGL;<br>vtkImagingHybrid;vtkIOImage;vtkDICOMParser;vtkIOCore;vtkzlib;vtkmetaio;vtkjpeg;vtkpng;vtktiff;vtkRenderingFreeType;<br>vtkfreetype;vtkftgl;vtkInteractionStyle;vtkImagingSources<br><br><br>--Same output TWICE ...--<br><br>If I find VTK first and then ITK I got the same results.<br><br>But if I don't find ITK, ie. with VTK alone I get the triple amount of libraries, and I need those libraries to compile my code.<br>Is this a bug in ITK (or cmake, or VTK) or am I doing something wrong in my CMakeLists.txt?<br><br>find_package(VTK 6.2 REQUIRED)<br>message (status "** VTK FOUND: USE_FILES ${VTK_USE_FILE}")<br>message (status "** VTK FOUND: VTK_LIBRARIES ${VTK_LIBRARIES}")<br><br>Output:<br>status** VTK FOUND: USE_FILES /home/phc/Software/VTK/installation/qt5-git/lib/cmake/vtk-6.2/UseVTK.cmake<br>status** VTK FOUND: VTK_LIBRARIES vtkIOMPIImage;vtkIOImage;vtkCommonDataModel;<br>vtkCommonMath;vtkCommonCore;vtksys;vtkCommonMisc;vtkCommonSystem;<br>vtkCommonTransforms;vtkCommonExecutionModel;vtkDICOMParser;vtkIOCore;vtkzlib;vtkmetaio;vtkjpeg;<br>vtkpng;vtktiff;vtkParallelMPI;vtkParallelCore;vtkIOLegacy;vtkfreetype;vtkIOVideo;vtkImagingColor;vtkImagingCore;<br>vtkRenderingLIC;vtkIOXML;vtkIOGeometry;vtkjsoncpp;vtkIOXMLParser;vtkexpat;vtkImagingSources;vtkRenderingOpenGL;<br>vtkImagingHybrid;vtkRenderingCore;vtkFiltersExtraction;vtkFiltersCore;vtkFiltersGeneral;vtkCommonComputationalGeometry;<br>vtkFiltersStatistics;vtkImagingFourier;vtkalglib;vtkFiltersGeometry;vtkFiltersSources;vtkInteractionStyle;vtkRenderingQt;<br>vtkFiltersTexture;vtkGUISupportQt;vtkRenderingLabel;vtkRenderingFreeType;vtkftgl;vtkRenderingContext2D;vtkViewsQt;<br>vtkViewsInfovis;vtkChartsCore;vtkCommonColor;vtkInfovisCore;vtkFiltersImaging;vtkImagingGeneral;vtkFiltersModeling;<br>vtkInfovisLayout;vtkViewsCore;vtkInteractionWidgets;vtkFiltersHybrid;vtkRenderingAnnotation;vtkRenderingVolume;vtkDomainsChemistry;<br>vtkIOParallel;vtkFiltersParallel;vtkIONetCDF;vtkNetCDF;vtkNetCDF_cxx;vtkhdf5_hl;vtkhdf5;vtkexoIIc;vtklibxml2;vtkRenderingFreeTypeOpenGL;<br>vtkTestingRendering;vtkFiltersProgrammable;vtkRenderingGL2PS;vtkRenderingContextOpenGL;vtkgl2ps;vtkFiltersHyperTree;vtkIOMPIParallel;<br>vtkIOMovie;vtkIOExodus;vtkTestingIOSQL;vtkIOSQL;vtksqlite;vtkFiltersSelection;vtkFiltersVerdict;verdict;vtkIOMINC;vtkImagingStencil;vtkInteractionImage;<br>vtkIOLSDyna;vtkRenderingLOD;vtkFiltersParallelImaging;vtkIOPLY;vtkViewsGeovis;vtkGeovisCore;vtkproj4;vtkRenderingImage;vtkIOInfovis;vtkIOEnSight;<br>vtkRenderingVolumeOpenGL;vtkImagingStatistics;vtkFiltersFlowPaths;vtkIOParallelNetCDF;vtkIOAMR;vtkFiltersAMR;vtkViewsContext2D;<br>vtkFiltersParallelGeometry;vtkIOParallelXML;vtkIOExport;vtkGUISupportQtSQL;vtkInfovisBoostGraphAlgorithms;vtkFiltersParallelMPI;<br>vtkGUISupportQtWebkit;vtkGUISupportQtOpenGL;vtkFiltersSMP;vtkImagingMorphological;vtkIOImport;vtkTestingGenericBridge;<br>vtkImagingMath;vtkFiltersGeneric;vtkRenderingVolumeAMR<br><br><br><br><br>                                       </div></body>
</html>