On Wed, Oct 7, 2015 at 9:11 AM, Antonio Cervone <ant.cerv...@gmail.com> wrote:
> vtk relies heavily on cmake, so it does not support pkg-config or > autotools explicitly. > what it provides is a VTKConfig.cmake generated during the > configuration/installation. > inquiring it with this CMakeLists.txt > > find_package(VTK) > > message("VTK_DEFINITIONS = ${VTK_DEFINITIONS}") > message("VTK_LIBRARIES = ${VTK_LIBRARIES}") > message("VTK_INCLUDE_DIRS = ${VTK_INCLUDE_DIRS}") > message("VTK_LIBRARY_DIRS = ${VTK_LIBRARY_DIRS}") > > gives all the relevant information (there is also a UseVTK.cmake that > automates this). > I do not see a way to parse the cmake files to get those flags in a easy > way without depending on cmake. > Thanks for the info, and yeah, we can't rely on calling cmake from our configure scripts... > the easy way I see is to make vtk.m4 test with and without extension for > the set of libraries, and rely on the user to properly set > --with-vtk-include and --with-vtk-lib during configuration. > my experience with autotools is very limited, but I will try to prepare a > patch. > Right, I think the way I would do it would be to repeat the current AC_LINK_IFELSE call multiple times, trying different sets of library names each time, until it succeeded... Alternatively, you could test for the existence of specific files first with if (test -r ${VTK_LIB}/libvtkIOCore-${vtkmajorminor}.dylib) ; then (and similarly for .so and maybe .a?) and use that for the input to the AC_LINK_IFELSE. I can probably take a look at it this evening, so don't worry about messing with it unless you really want to. -- John ------------------------------------------------------------------------------ Full-scale, agent-less Infrastructure Monitoring from a single dashboard Integrate with 40+ ManageEngine ITSM Solutions for complete visibility Physical-Virtual-Cloud Infrastructure monitoring from one console Real user monitoring with APM Insights and performance trend reports Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users