Skip to content

Commit c055be0

Browse files
committed
ENH: Add VTK_QT_VERSION to the VTK global config. options.
By doing this we can determine which version of Qt was used when VTK was built. Thus in CMakeFiles.txt we can do something like this: if(VTK_QT_VERSION VERSION_GREATER "4") # Do something specific for Qt5 else() # Do something specific for Qt4 endif() This allows Qt4 specific or Qt5 specific builds when using Qt with VTK. Change-Id: Ia0e1119c5e824a84478e1137b31d19bb868afda0 Signed-off-by: Andrew Maclean <andrew.amaclean@gmail.com>
1 parent 00c756e commit c055be0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMake/VTKConfig.cmake.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ SET(VTK_LEGACY_SILENT "@VTK_LEGACY_SILENT@")
8888
SET(VTK_WRAP_PYTHON "@VTK_WRAP_PYTHON@")
8989
SET(VTK_WRAP_TCL "@VTK_WRAP_TCL@")
9090
SET(VTK_WRAP_JAVA "@VTK_WRAP_JAVA@")
91+
SET(VTK_QT_VERSION "@VTK_QT_VERSION@")
9192

9293
# Do not add options or information here that is specific to a
9394
# particular module. Instead set <module>_EXPORT_OPTIONS and/or

0 commit comments

Comments
 (0)