[vtk-developers] interrogate which version of Python a VTK install was built with

Burlen Loring burlen.loring at gmail.com
Tue Feb 26 12:17:34 EST 2019


I have a C++ project configured with CMake that has Python bindings and 
uses VTK. In my CMake code I'd like to use VTK_PYTHON_VERSION to ensure 
that I'm compiling my stuff with the same version of Python that the VTK 
install was compiled with. As far as I can tell VTK_PYTHON_VERSION isn't 
available from cmake in the install. Could that variable be included in 
the install? Is there a better way?


More information about the vtk-developers mailing list