Skip to content
Snippets Groups Projects
Commit 084f858d authored by Sebastien Barre's avatar Sebastien Barre
Browse files

ENH: Tcl/Tk 8.5 update

parent 2483a05b
No related branches found
No related tags found
No related merge requests found
......@@ -539,7 +539,34 @@ IF (VTK_WRAP_PYTHON AND VTK_USE_TK AND TK_FOUND)
ENDIF (VTK_WRAP_PYTHON AND VTK_USE_TK AND TK_FOUND)
IF(VTK_USE_X)
TARGET_LINK_LIBRARIES(vtk${KIT} -lXt ${X11_LIBRARIES})
SET(X11_LIB_SEARCH_PATH
/usr/X11R6/lib
/usr/local/lib
/usr/openwin/lib
/usr/lib
)
FIND_LIBRARY(X11_Xt_LIB Xt ${X11_LIB_SEARCH_PATH})
MARK_AS_ADVANCED(X11_Xt_LIB)
IF (X11_Xt_LIB)
TARGET_LINK_LIBRARIES(vtk${KIT} ${X11_Xt_LIB})
ENDIF (X11_Xt_LIB)
TARGET_LINK_LIBRARIES(vtk${KIT} ${X11_LIBRARIES})
IF (VTK_USE_TK)
# Definitely needed in case we are linking against a Tcl/Tk 8.5 static,
# which by default seems to be missing Xss and Xft. It can not just be
# attached to the vtk interpreter because sub-projects may need the
# very same fix.
FIND_LIBRARY(X11_Xscreensaver_LIB Xss ${X11_LIB_SEARCH_PATH})
MARK_AS_ADVANCED(X11_Xscreensaver_LIB)
IF(X11_Xscreensaver_LIB)
TARGET_LINK_LIBRARIES(vtk${KIT} ${X11_Xscreensaver_LIB})
ENDIF(X11_Xscreensaver_LIB)
FIND_LIBRARY(X11_Xft_LIB Xft ${X11_LIB_SEARCH_PATH})
MARK_AS_ADVANCED(X11_Xft_LIB)
IF(X11_Xft_LIB)
TARGET_LINK_LIBRARIES(vtk${KIT} ${X11_Xft_LIB})
ENDIF(X11_Xft_LIB)
ENDIF(VTK_USE_TK)
ENDIF(VTK_USE_X)
IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
......
......@@ -98,10 +98,6 @@ ENDFOREACH(lib)
IF (VTK_USE_TK)
TARGET_LINK_LIBRARIES(vtk ${VTK_TK_LIBRARIES})
IF(VTK_USE_X)
# Definitely needed in case we are linking against Tcl/Tk 8.5 static
TARGET_LINK_LIBRARIES(vtk -lXss -lXft)
ENDIF(VTK_USE_X)
ENDIF (VTK_USE_TK)
# Setup install location for vtk tcl scripts.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment